You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
817 B
20 lines
817 B
package com.example.web;
|
|
|
|
import me.paulschwarz.springdotenv.DotenvPropertySource;
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
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")
|
|
@EnableAspectJAutoProxy//启用AOP自动代理
|
|
@EnableScheduling//定时任务
|
|
/*@PropertySource(value = "classpath:.env", factory = DotenvPropertySource.class)*/
|
|
public class WebApplication {
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(WebApplication.class, args);
|
|
}
|
|
}
|