How to expand war in Spring Boot's embedded tomcat?
问题 I have a war archive with a web application. I want to start that application within my Spring Boot application. I therefore followed the advice from that question: @Bean public EmbeddedServletContainerFactory servletContainerFactory() { return new TomcatEmbeddedServletContainerFactory() { @Override protected TomcatEmbeddedServletContainer getTomcatEmbeddedServletContainer(Tomcat tomcat) { try { tomcat.addWebapp("blog", "/tmp/roller.war"); } catch (ServletException ex) { throw new