【fix sonar】 XxlJobConfiguration.java文件
This commit is contained in:
+3
-1
@@ -10,6 +10,8 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
|||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定时任务配置
|
* 定时任务配置
|
||||||
|
|
||||||
@@ -21,7 +23,7 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
public class XxlJobConfiguration {
|
public class XxlJobConfiguration {
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
@Resource
|
||||||
private XxlJobProperties xxlJobProperties;
|
private XxlJobProperties xxlJobProperties;
|
||||||
|
|
||||||
//@Bean(initMethod = "start", destroyMethod = "destroy")
|
//@Bean(initMethod = "start", destroyMethod = "destroy")
|
||||||
|
|||||||
Reference in New Issue
Block a user