I am trying to activate production Mode in my spring-boot application, but I didn’t find any documentation about it. Also I would like to set other parameters, like idle session timeout, etc.
My workaround was to overwrite the parameter in my custom servlet:
I think that is the way you’ll have to do it at the moment - or that’s how I’ve also done it. Personally, I’d like to be able to configure those settings through application properties, would be consistent with other configuration.
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 . In your case, you’d use:
I created a wiki page for
Vaadin Spring tips and added this as a basis. Feel free to add new stuff to that page. These should definitely be in the Book as well, I’ll tip Marko about this.
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
===========================================================**
all othe rproperites froms ame application.properties are read just fine… any ideas?
I am using
sorry to sound weird but… I am using SpringBoot and I have no idea where an yml file could be… I am using maven and springboot, (yml this looks like gradle? I am not using gradle )
I have tried in application.properties
peter voland:
sorry to sound weird but… I am using SpringBoot and I have no idea where an yml file could be… I am using maven and springboot, (yml this looks like gradle? I am not using gradle )
I have tried in application.properties
application.yml lives in src/main/resources. IDK if one can use both application.properties and application.yml, but I chose to use yml. The two files both serve the same purpose in Spring.
peter voland:
sorry to sound weird but… I am using SpringBoot and I have no idea where an yml file could be… I am using maven and springboot, (yml this looks like gradle? I am not using gradle )
I have tried in application.properties