Loading...
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
TUTORIAL

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
6 years ago Aug 04, 2015 3:34pm
Koenraad Van Acker
6 years ago Aug 04, 2015 9:52pm

Hi Nanda,

One of the brackets is in a wrong position.

@SpringBootApplication
public class DemoApplication {

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

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

Cheers,
Koenraad
 

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