chore(build): 更新项目依赖版本并优化代码格式
- 升级 Spring Boot 父项目版本至 3.5.9 - 更新 MySQL 连接器版本至 9.4.0 - 更新 MyBatis-Plus 版本至 3.5.14 - 更新 Fastjson2 版本至 2.0.59 - 更新 Hutool 版本至 5.8.41 - 更新 JJWT 版本至 0.12.6 - 更新 Knife4j 版本至 4.5.0 - 更新 Undertow 版本至 2.3.20.Final - 更新 Oshi 版本至 6.6.5 - 更新 Guava 版本至 33.5.0-jre - 格式化注解文件中的代码缩进 - 移除多余的空行和注释格式调整
This commit is contained in:
@@ -25,8 +25,9 @@ import org.springframework.cache.annotation.EnableCaching;
|
||||
@EnableCaching
|
||||
@SpringBootApplication
|
||||
public class AppRun extends BootApplication {
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
SpringApplication springApplication = new SpringApplication(AppRun.class);
|
||||
inited(springApplication.run(args));
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
SpringApplication springApplication = new SpringApplication(AppRun.class);
|
||||
inited(springApplication.run(args));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,24 +23,25 @@ import java.util.List;
|
||||
* 代码生成入口
|
||||
*/
|
||||
public class GenCode {
|
||||
private static final String ADDR = "127.0.0.1";
|
||||
private static final Integer PORT = 23306;
|
||||
private static final String DATABASE_NAME = "cutejava";
|
||||
private static final String DATABASE_USER = "root";
|
||||
private static final String DATABASE_PWD = "kd123456";
|
||||
private static final String URL = String.format("jdbc:mysql://%s:%s/%s", ADDR, PORT, DATABASE_NAME);
|
||||
|
||||
public static void main(String[] args) {
|
||||
KitMpCmdGenUtil generator = new KitMpCmdGenUtil();
|
||||
generator.setDatabaseUrl(URL);
|
||||
generator.setDriverClassName("com.mysql.cj.jdbc.Driver");
|
||||
generator.setDatabaseUsername(DATABASE_USER);
|
||||
generator.setDatabasePassword(DATABASE_PWD);
|
||||
genTaskCode(generator);
|
||||
}
|
||||
private static final String ADDR = "127.0.0.1";
|
||||
private static final Integer PORT = 23306;
|
||||
private static final String DATABASE_NAME = "cutejava";
|
||||
private static final String DATABASE_USER = "root";
|
||||
private static final String DATABASE_PWD = "kd123456";
|
||||
private static final String URL = String.format("jdbc:mysql://%s:%s/%s", ADDR, PORT, DATABASE_NAME);
|
||||
|
||||
private static void genTaskCode(KitMpCmdGenUtil generator) {
|
||||
generator.gen("task", "",
|
||||
List.of("task_instance_info", "task_instance_detail", "task_template_info", "task_instance_step_detail"));
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
KitMpCmdGenUtil generator = new KitMpCmdGenUtil();
|
||||
generator.setDatabaseUrl(URL);
|
||||
generator.setDriverClassName("com.mysql.cj.jdbc.Driver");
|
||||
generator.setDatabaseUsername(DATABASE_USER);
|
||||
generator.setDatabasePassword(DATABASE_PWD);
|
||||
genTaskCode(generator);
|
||||
}
|
||||
|
||||
private static void genTaskCode(KitMpCmdGenUtil generator) {
|
||||
generator.gen("task", "",
|
||||
List.of("task_instance_info", "task_instance_detail", "task_template_info", "task_instance_step_detail"));
|
||||
}
|
||||
}
|
||||
|
||||
+17
-15
@@ -24,21 +24,23 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class HealthCheckPointer implements KitHealthCheckPointService {
|
||||
@Autowired private SystemDictMapper systemDictMapper;
|
||||
|
||||
/**
|
||||
* 系统准备就绪
|
||||
*/
|
||||
@Override
|
||||
public ResponseEntity<?> doReadiness() {
|
||||
return ResponseEntity.ok(null);
|
||||
}
|
||||
@Autowired
|
||||
private SystemDictMapper systemDictMapper;
|
||||
|
||||
/**
|
||||
* 系统是否正常
|
||||
*/
|
||||
@Override
|
||||
public ResponseEntity<?> doLiveness() {
|
||||
return ResponseEntity.ok(systemDictMapper.selectById(1));
|
||||
}
|
||||
/**
|
||||
* 系统准备就绪
|
||||
*/
|
||||
@Override
|
||||
public ResponseEntity<?> doReadiness() {
|
||||
return ResponseEntity.ok(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 系统是否正常
|
||||
*/
|
||||
@Override
|
||||
public ResponseEntity<?> doLiveness() {
|
||||
return ResponseEntity.ok(systemDictMapper.selectById(1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user