在pom中引入tools.jar即可
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>jdk1.8.0_191</version>
<scope>system</scope>
<systemPath>C:/Program Files/Java/jdk1.8.0_191/lib/tools.jar</systemPath>
</dependency>
在pom中引入tools.jar即可
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>jdk1.8.0_191</version>
<scope>system</scope>
<systemPath>C:/Program Files/Java/jdk1.8.0_191/lib/tools.jar</systemPath>
</dependency>