|
|
@@ -3,6 +3,7 @@ package com.chinaitop.depot;
|
|
3
|
3
|
import org.mybatis.spring.annotation.MapperScan;
|
|
4
|
4
|
import org.springframework.boot.SpringApplication;
|
|
5
|
5
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
6
|
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
6
|
7
|
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|
7
|
8
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
8
|
9
|
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
|
|
|
@@ -14,6 +15,7 @@ import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
|
|
14
|
15
|
@EnableDiscoveryClient
|
|
15
|
16
|
@SpringBootApplication(exclude = PageHelperAutoConfiguration.class)//配置mybatis的配置文件使用,否则报多个分页插件
|
|
16
|
17
|
@MapperScan(basePackages = {"com.chinaitop.depot.*.mapper"})
|
|
|
18
|
+@ConditionalOnProperty(name = "swagger.enable", havingValue = "true")
|
|
17
|
19
|
public class DepotWebApplication {
|
|
18
|
20
|
|
|
19
|
21
|
public static void main(String[] args) {
|