case-data-api/src/main/java/com/example/caseData/CaseDataApplication.java

21 lines
627 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.example.caseData;
import jakarta.annotation.PostConstruct;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.util.TimeZone;
@SpringBootApplication
@MapperScan("com.example.caseData.dao")
public class CaseDataApplication {
public static void main(String[] args) {
// 设置 JVM 全局默认时区(建议与数据库一致,比如 "Asia/Shanghai"
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
SpringApplication.run(CaseDataApplication.class, args);
}
}