Gradle編譯專案Druid找不到tools.jar和jconsole.jar

能。發表於2024-08-19

原因:jdk11之後不支援druid的兩個依賴

方法一:

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.5</version>




方法二:
<!--      <exclusions>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>tools</artifactId>
</exclusion>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>jconsole</artifactId>
</exclusion>
</exclusions>-->

相關文章