package com.example.web; import me.paulschwarz.springdotenv.DotenvPropertySource; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.PropertySource; import org.springframework.scheduling.annotation.EnableScheduling; @SpringBootApplication @MapperScan("com.example.web.mapper") @EnableScheduling//定时任务 /*@PropertySource(value = "classpath:.env", factory = DotenvPropertySource.class)*/ public class WebApplication { public static void main(String[] args) { SpringApplication.run(WebApplication.class, args); } }