2026-01-07 10:36:02 +08:00
|
|
|
package com.guahao;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
|
|
|
import org.springframework.boot.web.servlet.ServletComponentScan;
|
|
|
|
|
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
import tk.mybatis.spring.annotation.MapperScan;
|
|
|
|
|
|
|
|
|
|
@EnableAspectJAutoProxy(proxyTargetClass = true)
|
|
|
|
|
@SpringBootApplication(scanBasePackages = "com")
|
|
|
|
|
@MapperScan(basePackages = {"com.guahao.*.mapper"})
|
2026-01-14 17:15:54 +08:00
|
|
|
@ServletComponentScan(basePackages = {"com.guahao.common.filter", "com.guahao.common.listener"})
|
2026-01-07 10:36:02 +08:00
|
|
|
@ComponentScan(basePackages = {"com.guahao"})
|
|
|
|
|
@EnableScheduling
|
|
|
|
|
public class GuahaoApplication extends SpringBootServletInitializer {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
|
|
|
|
return application.sources(GuahaoApplication.class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
SpringApplication.run(GuahaoApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|