2024-02-21 11:47:40 +08:00
|
|
|
package com.rax;
|
|
|
|
|
|
|
|
import com.rax.common.security.annotation.EnableRaxResourceServer;
|
|
|
|
import com.rax.common.swagger.annotation.EnableRaxDoc;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
2024-03-15 13:30:31 +08:00
|
|
|
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
|
2024-08-27 17:31:17 +08:00
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
import org.springframework.context.annotation.FilterType;
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
2024-02-21 11:47:40 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author lengleng
|
|
|
|
* @date 2018年06月21日
|
|
|
|
* <p>
|
|
|
|
* 用户统一管理系统
|
2024-03-15 13:30:31 +08:00
|
|
|
* 禁用MongoDB数据库自动连接
|
2024-02-21 11:47:40 +08:00
|
|
|
*/
|
|
|
|
@EnableRaxDoc(value = "admin")
|
|
|
|
@EnableRaxResourceServer
|
2024-08-27 17:31:17 +08:00
|
|
|
@EnableScheduling // 开启定时任务 -> 清除日志相关内容
|
2024-03-15 13:30:31 +08:00
|
|
|
@SpringBootApplication(exclude = MongoAutoConfiguration.class)
|
2024-08-27 17:31:17 +08:00
|
|
|
@ComponentScan(
|
|
|
|
basePackages = {"com.rax"},
|
|
|
|
excludeFilters = {
|
|
|
|
@ComponentScan.Filter(type = FilterType.REGEX, pattern = "com.rax.vital.v1.*")
|
|
|
|
})
|
2024-02-21 11:47:40 +08:00
|
|
|
public class RaxAdminApplication {
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
SpringApplication.run(RaxAdminApplication.class, args);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|