| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.nb.admin;
- import com.nb.common.config.properties.DruidProperties;
- import com.nb.common.config.web.RequestCheckProperties;
- import org.mybatis.spring.annotation.MapperScan;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.boot.context.properties.EnableConfigurationProperties;
- import org.springframework.boot.web.servlet.ServletComponentScan;
- import org.springframework.context.annotation.Import;
- import org.springframework.context.annotation.PropertySource;
- import org.springframework.scheduling.annotation.EnableAsync;
- import org.springframework.scheduling.annotation.EnableScheduling;
- import org.tio.websocket.starter.EnableTioWebSocketServer;
- /**
- * Admin启动类
- *
- * @author Kevin
- */
- @SpringBootApplication(scanBasePackages ={
- "com.nb.aliyun",
- "com.nb.web",
- "com.nb.auth",
- "com.nb.admin",
- "springfox.documentation.schema"})
- @Import(cn.hutool.extra.spring.SpringUtil.class)
- @EnableTioWebSocketServer
- @EnableScheduling
- @EnableAsync
- @MapperScan({"com.nb.**.mapper"})
- @EnableConfigurationProperties({RequestCheckProperties.class, DruidProperties.class})
- @ServletComponentScan(basePackages = "com.nb.common.config")
- public class AdminApplication {
- public static void main(String[] args) { SpringApplication.run(AdminApplication.class, args);
- }
- }
|