Maven vaadin war 部署时找不到属性文件

Maven vaadin war can't find a properties file when deployed

我有一个 Vaadin 应用程序,它在 ./src/main/resources/VAADIN/myfile.properties 中有一些配置属性。我在码头上调试此应用程序,同时通过 maven tomcat 插件在 tomcat 服务器上开发和测试 d 版本。

<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>

目标:

效果很好。

问题是,如果我通过 package 目标打包整个东西并将生成的 war 部署到 q 系统(也Tomcat 7).我打开已部署的应用程序,它立即从第一次需要上述属性文件的行抛出 MissingResourceException。


附加信息:

非常感谢:)

这只是一个错字。抱歉浪费时间。

我已将文件重命名为 "Login_Application.properties" 而不是 "Login_application.properties",一切正常。仍然很奇怪它在码头和 tomcat 开发时工作。