【发布时间】:2012-09-22 02:03:44
【问题描述】:
我的嵌入式 tomcat 遇到问题:当我使用嵌入式 Tomcat 运行 Spring 应用程序时,属性似乎没有解析。
即使加载了属性文件:
INFO org.springframework.context.support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [/home/julien/Documents/donnees/projets/Site-Rencontres/java/target/classes/META-INF/i18n/application.properties]
找不到资源包:
WARN org.springframework.context.support.ResourceBundleMessageSource - ResourceBundle [/META-INF/i18n/application] not found for MessageSource: Can't find bundle for base name /META-INF/i18n/application, locale fr
但是,当我从 Eclipse/STS 运行我的应用程序时,我没有这样的问题。
【问题讨论】:
标签: spring maven properties-file maven-tomcat-plugin