diff --git a/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java b/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java index d204e0a..6d3fb99 100644 --- a/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java +++ b/bocloud.sms.booter/src/main/java/com/bocloud/sms/booter/scheduler/YunKongGetAppSchedule.java @@ -23,8 +23,7 @@ import java.util.*; @RequiredArgsConstructor public class YunKongGetAppSchedule { private final Logger logger = LoggerFactory.getLogger(this.getClass()); - @Autowired - private YkUtils ykUtils; + private final YkUtils ykUtils; private final StringRedisTemplate redisTemplate; diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java index bb25391..f7ea86b 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java @@ -44,10 +44,8 @@ public class TrxServiceImpl implements TrxService { private UserServiceImpl userServiceImpl; @Autowired private UserRepository userRepository; - @Autowired - private YkUtils ykUtils; - @Autowired - private QxUtils qxUtils; + private final YkUtils ykUtils; + private final QxUtils qxUtils; @Autowired private RoleRepository roleRepository; private final StringRedisTemplate redisTemplate;