Tomcat——启动错误[A web application must be configured as privileged to be able to load it]解决方案
生活随笔
收集整理的這篇文章主要介紹了
Tomcat——启动错误[A web application must be configured as privileged to be able to load it]解决方案
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
解決方案
方法一:?
修改/conf/context.xml 將:
<Context>修改為
<Context privileged="true">重啟
方法二:Spring Boot 內置Tomcat?
/*** @author ShenTuZhiGang* @version 1.0.0* @date 2020-11-02 22:42*/ @Configuration public class CustomTomcatConfig {@Beanpublic WebServerFactoryCustomizer webServerFactoryCustomizer() {return new WebServerFactoryCustomizer<TomcatServletWebServerFactory>() {@Overridepublic void customize( TomcatServletWebServerFactory factory) {context.setPrivileged(true);//關鍵});}};} }參考文章
Debain-tomat8
總結
以上是生活随笔為你收集整理的Tomcat——启动错误[A web application must be configured as privileged to be able to load it]解决方案的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JAVA——操场跑步路径定位模拟解决方案
- 下一篇: VisualSVN Server Man