style(framework): 优化代码格式与注解配置
This commit is contained in:
@@ -26,7 +26,6 @@ import java.net.UnknownHostException;
|
||||
@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));
|
||||
|
||||
@@ -41,11 +41,6 @@ public class GenCode {
|
||||
}
|
||||
|
||||
private static void genTaskCode(CsMpCmdGenUtil generator) {
|
||||
generator.gen("task", "", List.of(
|
||||
"task_instance_info",
|
||||
"task_instance_detail",
|
||||
"task_template_info",
|
||||
"task_instance_step_detail"
|
||||
));
|
||||
generator.gen("task", "", List.of("task_instance_info", "task_instance_detail", "task_template_info", "task_instance_step_detail"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,8 +61,8 @@ spring:
|
||||
# sql监控
|
||||
driverClassName: com.p6spy.engine.spy.P6SpyDriver
|
||||
url: jdbc:p6spy:mysql://192.168.100.128:23306/cutejava?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
|
||||
# driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://192.168.100.128:23306/cutejava?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
|
||||
# driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://192.168.100.128:23306/cutejava?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: kd123456
|
||||
# 初始连接数,建议设置为与最小空闲连接数相同
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="30 seconds" debug="false">
|
||||
<contextName>CuteJava</contextName>
|
||||
<property name="log.name" value="cutejava" />
|
||||
<property name="log.home" value="c:/logs" />
|
||||
<property name="log.name" value="cutejava"/>
|
||||
<property name="log.home" value="c:/logs"/>
|
||||
<property name="log.charset" value="utf-8"/>
|
||||
<property name="log.pattern" value="%red(%contextName) - %red(%d{yyyy-MM-dd HH:mm:ss.SSS}) - %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}) - %msg%n"/>
|
||||
<property name="log.pattern"
|
||||
value="%red(%contextName) - %red(%d{yyyy-MM-dd HH:mm:ss.SSS}) - %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}) - %msg%n"/>
|
||||
|
||||
<!-- Spring 日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn"/>
|
||||
@@ -38,6 +39,6 @@
|
||||
<!--普通日志输出到控制台-->
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
<!--普通日志输出到文件-->
|
||||
<appender-ref ref="FILE" />
|
||||
<appender-ref ref="FILE"/>
|
||||
</root>
|
||||
</configuration>
|
||||
+2
-6
@@ -41,14 +41,10 @@ public class MyBatisMapperTests {
|
||||
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateTime.now()));
|
||||
|
||||
// SELECT * FROM system_user WHERE (create_time > '2025-08-18 14:53:46');
|
||||
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(
|
||||
SystemUserTb::getCreateTime,
|
||||
DateUtil.formatDateTime(new Date())));
|
||||
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateUtil.formatDateTime(new Date())));
|
||||
|
||||
// SELECT * FROM system_user WHERE (create_time > '2025-08-18');
|
||||
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(
|
||||
SystemUserTb::getCreateTime,
|
||||
DateUtil.formatDate(new Date())));
|
||||
systemUserMapper.selectList(new LambdaQueryWrapper<SystemUserTb>().gt(SystemUserTb::getCreateTime, DateUtil.formatDate(new Date())));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public class CsFileUtilTest {
|
||||
|
||||
@Test
|
||||
public void testToFile() {
|
||||
long retval = toFile(new MockMultipartFile("foo", (byte[]) null)).getTotalSpace();
|
||||
long retval = toFile(new MockMultipartFile("foo", (byte[])null)).getTotalSpace();
|
||||
assertEquals(500695072768L, retval);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user