spring-boot项目添加jar包后启动报错SpringBoot - Unable to Start embedded TomCat,仔细查看启动日志
Getting NoSuchMethodError:javax.servlet.ServletContext.getVirtualServerName()
问题找了半天终于解决了,是servlet-api中的类和tomcat-embed-core中的ServletContext类冲突了,在pom.xml文件中exclusion servlet-api.jar就可以了,
遇到问题时仔细查看启动日志很重要