chore(deps): 更新Spring Boot版本并优化项目配置
- 将Spring Boot父版本从3.5.9升级到3.5.10 - 修复文件上传路径中用户名前缺少斜杠的问题
This commit is contained in:
@@ -25,7 +25,7 @@ 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 Integer PORT = 3306;
|
||||
private static final String DATABASE_NAME = "cutejava";
|
||||
private static final String DATABASE_USER = "root";
|
||||
private static final String DATABASE_PWD = "kd123456";
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2021-2026 Odboy
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package cn.odboy.util;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class KitDateUtilTest {
|
||||
|
||||
@Test
|
||||
public void testGetWeekDay() {
|
||||
SimpleDateFormat simpleDateformat = new SimpleDateFormat("E");
|
||||
assertEquals(simpleDateformat.format(new Date()), KitDateUtil.getWeekDay());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2021-2026 Odboy
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package cn.odboy.util;
|
||||
|
||||
/**
|
||||
* 钉钉 Teambition 实际工时数计算
|
||||
*/
|
||||
public class WorkTimeTests {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// 总工作时长(时)
|
||||
double totalHour = 11;
|
||||
// 实际工作时长(天),一天8小时工作制
|
||||
double actualHour = totalHour / 8.0;
|
||||
System.err.println("actualHour=" + actualHour + " 天");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user