fanxw пре 2 година
родитељ
комит
fb8f1c1099
2 измењених фајлова са 15 додато и 15 уклоњено
  1. 12 11
      pom.xml
  2. 3 4
      src/main/resources/bootstrap.yml

+ 12 - 11
pom.xml

@@ -49,6 +49,18 @@
49 49
 			<scope>test</scope>
50 50
 		</dependency>
51 51
 
52
+		<!-- swagger2 -->
53
+		<dependency>
54
+			<groupId>io.springfox</groupId>
55
+			<artifactId>springfox-swagger2</artifactId>
56
+			<version>2.6.1</version>
57
+		</dependency>
58
+		<dependency>
59
+			<groupId>io.springfox</groupId>
60
+			<artifactId>springfox-swagger-ui</artifactId>
61
+			<version>2.6.1</version>
62
+		</dependency>
63
+
52 64
         <!-- 引入spring boot自带的pagehelper插件 -->
53 65
         <dependency>
54 66
             <groupId>com.github.pagehelper</groupId>
@@ -61,17 +73,6 @@
61 73
             <groupId>org.springframework.cloud</groupId>
62 74
             <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
63 75
         </dependency>
64
-        <!-- swagger2 -->
65
-        <dependency>
66
-            <groupId>io.springfox</groupId>
67
-            <artifactId>springfox-swagger2</artifactId>
68
-            <version>2.6.1</version>
69
-        </dependency>
70
-        <dependency>
71
-            <groupId>io.springfox</groupId>
72
-            <artifactId>springfox-swagger-ui</artifactId>
73
-            <version>2.6.1</version>
74
-        </dependency>
75 76
 
76 77
         <dependency>
77 78
             <groupId>org.springframework.boot</groupId>

+ 3 - 4
src/main/resources/bootstrap.yml

@@ -7,9 +7,9 @@ server:
7 7
 eureka:
8 8
   client:
9 9
     service-url:
10
-      defaultZone: http://172.16.0.4:9711/eureka/
10
+      defaultZone: http://localhost:9001/eureka/
11 11
   instance:
12
-    hostname: 172.16.0.16
12
+    hostname: localhost
13 13
     prefer-ip-address: true
14 14
     # 每隔10s发送一次心跳(默认30s)
15 15
     lease-renewal-interval-in-seconds: 10
@@ -21,7 +21,6 @@ mybatis:
21 21
   config-location: classpath:mybatis/mybatis-config.xml
22 22
 
23 23
 spring:
24
-  profiles: agentLv
25 24
   application:
26 25
     name: depot-agent
27 26
   # 数据库配置
@@ -56,4 +55,4 @@ web:
56 55
 cxf:
57 56
   path: /archive
58 57
 
59
-#logging.level.com.chinaitop.depot.agent.crk.mapper: debug
58
+#logging.level.com.chinaitop.depot.agent.crk.mapper=debug