Spring Java Config: Tomcat deploy without web.xml

前端 未结 2 1271
终归单人心
终归单人心 2021-01-05 10:36

I built a java configured Spring MVC application without any XML. I can deploy and start the application on my laptop without any problems. But as soon as I try to deploy my

2条回答
  •  感动是毒
    2021-01-05 11:24

    If this still isn't solved, it is possibly due to the Servlet version. The Servlet 3.x API is required to have the possibility to configure a java web application by writing a java class instead of having a web.xml file inside the WEB-INF folder.

    see here for a complete example.

提交回复
热议问题