101captain
2021-09-22 1775bb71f952106c58657cf02891cbe2a286c8f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.panzhihua.service_community;
 
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
class ServiceCommunityApplicationTests {
 
    @Test
    void contextLoads() {
        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()));
    }
 
}