|
|
@@ -1,27 +1,27 @@
|
|
1
|
1
|
server.port=9025
|
|
2
|
2
|
#本项目ip
|
|
3
|
|
-eureka.instance.ip-address=localhost
|
|
|
3
|
+#eureka.instance.ip-address=localhost
|
|
4
|
4
|
#使用ip替代实例名
|
|
5
|
|
-eureka.instance.prefer-ip-address=true
|
|
|
5
|
+#eureka.instance.prefer-ip-address=true
|
|
6
|
6
|
#设置实例的ID为ip:port
|
|
7
|
|
-eureka.instance.instance-id=${eureka.instance.ip-address}:${server.port}
|
|
|
7
|
+#eureka.instance.instance-id=${eureka.instance.ip-address}:${server.port}
|
|
8
|
8
|
|
|
9
|
9
|
#数据库驱动
|
|
10
|
10
|
spring.datasource.driverClassName = com.mysql.jdbc.Driver
|
|
11
|
|
-spring.datasource.url = jdbc:mysql://192.168.123.98:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false
|
|
|
11
|
+spring.datasource.url = jdbc:mysql://192.168.123.38:3306/depot_shanxi?useUnicode=true&characterEncoding=utf-8&useSSL=false
|
|
12
|
12
|
spring.datasource.username = root
|
|
13
|
13
|
spring.datasource.password = 123456
|
|
14
|
14
|
|
|
15
|
|
-eureka.client.serviceUrl.defaultZone=http://localhost:9001/eureka/
|
|
|
15
|
+eureka.client.serviceUrl.defaultZone=http://eureka-depot-sx:9001/eureka/
|
|
16
|
16
|
|
|
17
|
17
|
spring.application.name=depot-web
|
|
18
|
18
|
|
|
19
|
|
-eureka.instance.status-page-url=http://localhost:${server.port}/swagger-ui.html
|
|
|
19
|
+#eureka.instance.status-page-url=http://localhost:${server.port}/swagger-ui.html
|
|
20
|
20
|
#eureka.client.register-with-eureka=false
|
|
21
|
21
|
#eureka.client.fetch-registry=false
|
|
22
|
22
|
|
|
23
|
23
|
# Redis数据库索引(默认为0)
|
|
24
|
|
-spring.redis.database=0
|
|
|
24
|
+spring.redis.database=1
|
|
25
|
25
|
# Redis服务器地址
|
|
26
|
26
|
spring.redis.host=192.168.123.98
|
|
27
|
27
|
# Redis服务器连接端口
|
|
|
@@ -61,5 +61,5 @@ spring.servlet.multipart.max-file-size=10MB
|
|
61
|
61
|
spring.servlet.multipart.max-request-size=20MB
|
|
62
|
62
|
|
|
63
|
63
|
#图片路径
|
|
64
|
|
-web.upload-path=D:\depotImg
|
|
|
64
|
+web.upload-path=/home
|
|
65
|
65
|
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|