| | |
| | | package com.xcong.excoin; |
| | | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | /** |
| | | * @author helius |
| | | * OKX 盈利回收策略 — 最小化启动入口。 |
| | | * |
| | | * <p>关闭不需要的自动配置:DataSource / Redis / RabbitMQ / Security / MyBatis。 |
| | | */ |
| | | @EnableScheduling |
| | | @EnableSwagger2 |
| | | @SpringBootApplication |
| | | @MapperScan("com.xcong.excoin.modules.*.dao") |
| | | @SpringBootApplication(exclude = { |
| | | DataSourceAutoConfiguration.class, |
| | | RedisAutoConfiguration.class, |
| | | RabbitAutoConfiguration.class, |
| | | SecurityAutoConfiguration.class |
| | | }) |
| | | public class ExcoinApplication { |
| | | |
| | | public static void main(String[] args) { |
| | | System.setProperty("spring.devtools.restart.enabled", "false"); |
| | | SpringApplication.run(ExcoinApplication.class, args); |
| | | } |
| | | |
| | | } |