Spring Boot and Vaadin with Maven - Production Mode etc
After some time you'll want to release your project and set it into production mode.
Usually this happens by setting the parameter productionMode to true in the web.xml file. But we are using here Spring Boot and one of it's features are the absence of XML configuration stuff.
To set the production mode parameter in the Spring Boot environment just add the line
vaadin.servlet.productionMode = true
to the application.properties file in src/main/resources.
You can see the other supported parameters and their defaults here.
The parameters are
- vaadin.servlet.resourceCacheTime
- vaadin.servlet.productionMode
- vaadin.servlet.heartbeatInterval
- vaadin.servlet.closeIdleSessions
To create the production ready jar set vaadin.servlet.productionMode to true and run mvn package.