使用log4j出现缺失com.sun.jdmk:jmxtools:jar:1.2.1
时间:2017-02-06 14:20:24
收藏:0
阅读:1530
用maven引用log4j出现缺失com.sun.jdmk:jmxtools:jar:1.2.1的错误提示
解决方案一:使用1 .2 .15之前版本的log4j
解决方二:
<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.15</version> <exclusions> <exclusion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> </exclusion> <exclusion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> </exclusion> <exclusion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> </exclusion> </exclusions> </dependency>
原文:http://www.cnblogs.com/chrischris/p/6369884.html
评论(0)