package com.sugon.acx.search; import cn.easyes.starter.register.EsMapperScan; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; /** * 微服务应用启动类 */ @SpringBootApplication(scanBasePackages = {"com.sugon.acx"}, exclude = DataSourceAutoConfiguration.class) @EsMapperScan("com.sugon.acx.**.mapper") @EnableConfigurationProperties @EnableDiscoveryClient @MapperScan("com.sugon.acx.**.mapper") public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }