ziqin commited on
Commit
76efa57
1 Parent(s): 5c575d9

Upload Application.java

Browse files
Files changed (1) hide show
  1. Application.java +24 -0
Application.java ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package com.sugon.acx.search;
2
+
3
+ import cn.easyes.starter.register.EsMapperScan;
4
+ import org.mybatis.spring.annotation.MapperScan;
5
+ import org.springframework.boot.SpringApplication;
6
+ import org.springframework.boot.autoconfigure.SpringBootApplication;
7
+ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
8
+ import org.springframework.boot.context.properties.EnableConfigurationProperties;
9
+ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
10
+
11
+ /**
12
+ * 微服务应用启动类
13
+ */
14
+ @SpringBootApplication(scanBasePackages = {"com.sugon.acx"}, exclude = DataSourceAutoConfiguration.class)
15
+ @EsMapperScan("com.sugon.acx.**.mapper")
16
+ @EnableConfigurationProperties
17
+ @EnableDiscoveryClient
18
+ @MapperScan("com.sugon.acx.**.mapper")
19
+ public class Application {
20
+ public static void main(String[] args) {
21
+ SpringApplication.run(Application.class, args);
22
+ }
23
+
24
+ }