This is an example project that can be used as a starting point to create your own Vaadin application with Spring Boot. It contains all the necessary configuration and some placeholder files to get you started.
The project is a standard Maven project, so you can import it to your IDE of choice. Read more how to set up a development environment for Vaadin projects (Windows, Linux, macOS).
This project was created from https://start.vaadin.com.
To run from the command line, use mvn
and open http://localhost:8080 in your browser.
After the application has started, you can view it at http://localhost:8080/ in your browser. You can now also attach breakpoints in code for debugging purposes, by clicking next to a line number in any source file.
src/main/java
, under the main package.Debug As
--> Java app.Application
.Do not worry if the debugger breaks at a SilentExitException
. This is a Spring Boot feature and happens on every
startup.
After the application has started, you can view it at http://localhost:8080/ in your browser. You can now also attach breakpoints in code for debugging purposes, by clicking next to a line number in any source file.
MainView.java
in src/main/java
contains the app.matchNavigation setup. It
uses App Layout.app.views
package in src/main/java
contains the server-side Java app.views of your application.app.views
folder in frontend/
contains the client-side JavaScript app.views of your application.vaadin.com has lots of material to help you get you started: