【发布时间】:2016-01-29 18:02:09
【问题描述】:
我的 Spring Boot 1.3.2 应用程序作为 WAR 文件部署到独立的 tomcat7 中。我正在尝试使用server.use-forward-headers=true 激活 RemoteIPValve,如spring boot docs 中所述。
但是在处理请求时,RemoteIPValve 没有正确配置或调用。日志说:
检测到 NonEmbeddedServletContainerFactory。
当我使用 maven 插件启动应用程序时,我得到一个:
初始化 Spring 嵌入式 WebApplicationContext
... RemoteIPValve 正在按预期工作。如何使用 WAR 文件部署来完成同样的任务?
【问题讨论】:
标签: spring tomcat spring-boot embedded-tomcat-7