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()));
|
}
|
|
}
|