2017-02-27 52 views
1

我有一个使用Vaadin的Spring-Boot应用程序。 我最终确定了实现,并且希望将该应用投入生产。 当我启动程序,外壳写入此消息:使用SpringBoot将调试模式转换为生产模式

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. 

所以,我想我应该改变的web.xml文件。但是,这个问题;用Spring,我没有web.xml。因此,我如何才能以其他方式将productionMode设置为true? 有人可以帮助我吗?

回答

2

如果您使用的是Spring Boot,您可以通过将它们添加到application.properties文件来设置大多数(但不是全部)的servlet属性。您可以找到支持的属性here

vaadin.servlet.resourceCacheTime 
vaadin.servlet.productionMode 
vaadin.servlet.heartbeatInterval 
vaadin.servlet.closeIdleSessions 
+0

这似乎是解决方案!谢谢 ! – ReNaR

+0

链接已损坏,您是否可以更新该链接或告诉您如何到达那里? Thx提前! *编辑:*发现它[这里](https://vaadin.com/docs/v8/framework/articles/VaadinSpringTips.html) –