下面两个配置有简洁的包依赖冲突:
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.5</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.5</version> </dependency>
<dependency> <groupId>kr.co.vcnc.haeinsa</groupId> <artifactId>haeinsa</artifactId> <version>1.0.3</version> <!--support transaction--> </dependency>
解决办法,<exclusions>的代码插入到间接依赖的代码里面去:
<dependency> <groupId>kr.co.vcnc.haeinsa</groupId> <artifactId>haeinsa</artifactId> <version>1.0.3</version> <!--support transaction--> <exclusions> <!--去除不用的依赖包--> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> </exclusions> </dependency>
时间: 2024-11-10 09:08:45