0

I'm trying to deploy a spring boot application packaged as a war file to tomcat 8. I would also like to have the properties come from a config server. This config server can be a simple spring boot executable jar file, connected to git.

I can't see to find a way to tell the "classic" tomcat (non-spring-boot) to look for configuration in the external config server. There's no "bootstrap.yml" for tomcat that I'm aware of?

Any assistance would be great.

Thanks.

4

1 回答 1

0

问题是我的 web.xml 仍然使用 ContextLoaderListener 的旧实现。如果你的 war 被打包为一个 spring boot 应用程序,则不需要这样做。实际上,这就是造成问题的原因。当我删除它时,它让配置被弹簧引导本身拾取。

请参阅 Dave Syer 的回复:

https://github.com/spring-cloud/spring-cloud-config/issues/715

于 2017-09-05T11:22:49.993 回答