1.在使用powerjob的时候,启动项目有报netty相关ClassNotFoundException的问题
<dependency> <groupId>tech.powerjob</groupId> <artifactId>powerjob-client</artifactId> <version>4.3.1</version> </dependency> <dependency> <groupId>tech.powerjob</groupId> <artifactId>powerjob-worker-spring-boot-starter</artifactId> <version>4.3.1</version> </dependency>
2.powerJob的4.3.1版本对netty的版本有要求,而powerjob的4.3.2版本在启动时netty则不是必要选项,
netty的版本与spring-boot-starter-parent版本有关,
可以手动重新导入高版本netty,解决ClassNotFoundException的问题,不用升spring-boot-starter-parent版本;或者使用高版本的powerjob
<dependency> <groupId>io.netty</groupId> <artifactId>netty-codec</artifactId> <version>4.1.82.Final</version> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-common</artifactId> <version>4.1.82.Final</version> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-codec-http</artifactId> <version>4.1.82.Final</version> </dependency>
标签:netty,版本,4.3,spring,io,powerjob From: https://www.cnblogs.com/wdgde/p/17533117.html