springboot启动失败:The following method did not exist:javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
解决方案:
在File-->Settings中下载插件 Maven Helper
下载成功后重启IDEA,点击启动报错模块的pom.xml,底部有Dependency Analyzer选项,打开Dependency Analyzer界面,搜索servlet-api,找到冲突的jar,右键Exclude掉
启动application.java成功