當我在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 –