Spring Boot and Vaadin with Maven- Addons
Using Vaadin add ons with Spring Boot is a bit tricky.
You have to do this steps:
- Add the new dependency to the the pom.xml
This should create a new AppWidgetSet.xml in the source root folder. - Run maven clean vaadin:compile
This cleans the target folder and creates a new widgetset. - Create the folder WebContent
Copy the folder VAADIN from the folder target/classes into the WebContent folder. - Add the annotation @Widgetset("de.jefure.sensorClient.AppWidgetSet") to the UI class.
In this case it the class de.jefure.sensorClient.SensorFrontendUI - Start the application
The new Addon can be used now