当我在Tomcat的运行.war文件,日志显示春天,Tomcat的,爪哇
错误[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>
任何人都可以帮我吗?
试试这个,我相信JVM属性设置不正确 - https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features- external-config.html#boot-features-external-config-application-property-files –