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需要的依赖:

浙公网安备 33010602011771号