From ce4a770744d7a0b4e4ea3b5101556b94e72bdf1c Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期二, 14 十一月 2023 17:49:20 +0800 Subject: [PATCH] 修改打卡 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/ServiceCommunityApplicationTests.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/ServiceCommunityApplicationTests.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/ServiceCommunityApplicationTests.java index 5ab254b..f89d88b 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/ServiceCommunityApplicationTests.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/test/java/com/panzhihua/service_community/ServiceCommunityApplicationTests.java @@ -1,8 +1,12 @@ package com.panzhihua.service_community; -import lombok.extern.slf4j.Slf4j; +import com.panzhihua.common.utlis.DateUtils; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; + +import lombok.extern.slf4j.Slf4j; + +import java.util.Date; @Slf4j @SpringBootTest @@ -13,4 +17,11 @@ log.info("test"); } + @Test + void test() { + log.info(String.valueOf(DateUtils.getYear(new Date()))); + log.info(String.valueOf(DateUtils.getMonth(new Date()))); + log.info(String.valueOf(DateUtils.getYear(new Date())) + 0 + DateUtils.getMonth(new Date())); + } + } -- Gitblit v1.7.1