Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
text
Languages:
Chinese
Size:
10K - 100K
Tags:
code
License:
Upload Application.java
Browse files- 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 |
+
}
|