style(java): 统一Springboot3版本代码格式化和优化依赖配置
This commit is contained in:
+3
-3
@@ -17,14 +17,14 @@
|
||||
package cn.odboy;
|
||||
|
||||
import cn.odboy.framework.monitor.service.KitHealthCheckPointService;
|
||||
import cn.odboy.system.service.SystemDictService;
|
||||
import cn.odboy.system.dal.mysql.SystemDictMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class HealthCheckPointer implements KitHealthCheckPointService {
|
||||
@Autowired private SystemDictService systemDictService;
|
||||
@Autowired private SystemDictMapper systemDictMapper;
|
||||
|
||||
/**
|
||||
* 系统准备就绪
|
||||
@@ -39,6 +39,6 @@ public class HealthCheckPointer implements KitHealthCheckPointService {
|
||||
*/
|
||||
@Override
|
||||
public ResponseEntity<?> doLiveness() {
|
||||
return ResponseEntity.ok(systemDictService.getById(1));
|
||||
return ResponseEntity.ok(systemDictMapper.selectById(1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user