Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Unable to work with Spring boot with Vaadin support

Nanda Kishor
7 years ago Aug 04, 2015 3:34pm
Koenraad Van Acker
7 years ago Aug 04, 2015 9:52pm

Hi Nanda,

One of the brackets is in a wrong position.

public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
} // add this bracket

class MainUI extends UI
      protected void init(VaadinRequest vaadinRequest) {
          setContent(new VerticalLayout(new Button("Click me")));
//} remove this bracket


Nanda Kishor
7 years ago Aug 05, 2015 6:48am