引入jeecg-boot-starter-job依赖启动报错 #8694

springboot3_sas
JEECG 2025-08-08 22:23:25 +08:00
parent d0f85ccc7e
commit e10df20e98
2 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import org.jeecg.common.constant.ServiceNameConstants;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web.context.request.ServletRequestAttributes;
@ -16,6 +17,7 @@ import org.springframework.web.context.request.ServletRequestAttributes;
* @Description: spring * @Description: spring
* @author: jeecg-boot * @author: jeecg-boot
*/ */
@Lazy(false)
@Component @Component
public class SpringContextUtils implements ApplicationContextAware { public class SpringContextUtils implements ApplicationContextAware {

View File

@ -210,7 +210,7 @@
<dependency> <dependency>
<groupId>org.jeecgframework.boot</groupId> <groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-boot-starter3-job</artifactId> <artifactId>jeecg-boot-starter3-job</artifactId>
<version>${jeecgboot.version}</version> <version>3.8.2-RC</version>
</dependency> </dependency>
<!--redis分布式锁--> <!--redis分布式锁-->
<dependency> <dependency>
@ -459,6 +459,10 @@
<groupId>org.apache.calcite</groupId> <groupId>org.apache.calcite</groupId>
<artifactId>calcite-elasticsearch</artifactId> <artifactId>calcite-elasticsearch</artifactId>
</exclusion> </exclusion>
<exclusion>
<artifactId>autopoi-web</artifactId>
<groupId>org.jeecgframework</groupId>
</exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<!-- 后台导出接口Echart图表支持包按需引入 --> <!-- 后台导出接口Echart图表支持包按需引入 -->