原文: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