Spring Boot中启动Tomcat报错Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'servletEndpointRegistrar' defined in

 

报错原因:版本冲突

 

根据自己添加的springboot的版本

Spring Boot 2.2.1需要的依赖:

 

 

 

 

posted @ 2019-11-28 11:27  今天又下小雨  阅读(23101)  评论(0)    收藏  举报