Skip to content

Instantly share code, notes, and snippets.

@christoph-frick
Created January 17, 2015 19:32
Show Gist options
  • Save christoph-frick/d7a553c97b597cabe68c to your computer and use it in GitHub Desktop.
Save christoph-frick/d7a553c97b597cabe68c to your computer and use it in GitHub Desktop.
minimalistic springboot vaadin example; run with `spring run vaadin`
@Grapes([
@Grab('org.vaadin.spring:spring-boot-vaadin:0.0.3'),
@Grab('com.vaadin:vaadin-server:7.4.0.beta1'),
@Grab('com.vaadin:vaadin-client-compiled:7.4.0.beta1'),
@Grab('com.vaadin:vaadin-themes:7.4.0.beta1'),
])
import org.vaadin.spring.VaadinUI
import com.vaadin.server.VaadinRequest
import com.vaadin.ui.*
@VaadinUI
class MyUI extends UI {
protected void init(VaadinRequest request) {
setContent(new Label("Hello World"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment