参考文档:https://www.jb51.net/article/194123.htm
问题:maven加载报错
Cannot resolve com.sun:tools:1.8
Cannot resolve com.sun:jconsole:1.8
解决:pom.xml引入时排除掉这两个依赖,再重新加载maven
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.21</version>
<exclusions>
<exclusion>
<groupId>com.sun</groupId>
<artifactId>jconsole</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
</exclusion>
</exclusions>
</dependency>