原文:java.lang.NoClassDefFoundError: javax/servlet/ServletContext

方法 :把SpringBoot中main方法所在的class不再继承org.springframework.boot.context.web.SpringBootServletInitializer即可 因为继承org.springframework.boot.context.web.SpringBootServletInitializer,并重写里面的configure方法,即可将这个项目打成 ...

2016-09-13 08:21 0 14006 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM