当我在tomcat中运行.war文件时,日志显示
错误com.configleon.configurer.WebPropertyConfigurer -在JVM设置中没有指定“configLocation”变量! 错误org.springframework.web.context.ContextLoader -上下文初始化失败
这是我的密码:
<!-- configlion property configurator -->
<bean class="com.configleon.configurer.WebPropertyConfigurer">
<property name="propertyResources">
<bean class="com.configleon.resource.WebPropertyResources"/>
</property>
</bean>
有人能帮我吗?
发布于 2016-02-04 21:14:13
对于第一个错误,com.configleon.configurer.WebPropertyConfigurer
见这里
还有第二个
ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
在部署环境中,只需确保服务器类路径包含Spring库(例如spring-2.5.6.jar)。
对于Spring3,ContextLoaderListener被移到Springweb.jar,您可以从Maven中央存储库获得库。
标记
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>
https://stackoverflow.com/questions/35216504
复制