Search code examples
javaspringvaadinweb.xmlproduction

Debug Mode to Production Mode with SpringBoot


I have an application Spring-Boot with Vaadin. I finalize the implementation and I want to put the app in production. When I launch the program, the shell writes this message :

Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.

Therefore, I guess I should change the web.xml file. But, the problem ; with Spring, I have not web.xml. Therefore, how can I put the productionMode to true in another way ? Someone can help me ?


Solution

  • If you are using Spring Boot, you can set most (but not all) of the servlet properties by adding them to your application.properties file. You can find the supported properties here.

    vaadin.servlet.resourceCacheTime
    vaadin.servlet.productionMode
    vaadin.servlet.heartbeatInterval
    vaadin.servlet.closeIdleSessions