IDEA报错:The method's class, org.apache.tomcat.util.modeler.Registry, is available from the following locations:
The method's class, org.apache.tomcat.util.modeler.Registry, is available from the following locations:
jar:file:/D:/mvnrepository/org/apache/tomcat/embed/tomcat-embed-core/8.5.28/tomcat-embed-core-8.5.28.jar!/org/apache/tomcat/util/modeler/Registry.class
The class hierarchy was loaded from the following locations:
org.apache.tomcat.util.modeler.Registry: file:/D:/mvnrepository/org/apache/tomcat/embed/tomcat-embed-core/8.5.28/tomcat-embed-core-8.5.28.jar
使用springBOOT-starter内置tomcat即可