gaodandan il y a 6 ans
Parent
commit
dd1a469b66
2 fichiers modifiés avec 39 ajouts et 17 suppressions
  1. 2 2
      pom.xml
  2. 37 15
      src/main/resources/bootstrap.yml

+ 2 - 2
pom.xml

@@ -4,11 +4,11 @@
4 4
 	<modelVersion>4.0.0</modelVersion>
5 5
 
6 6
 	<groupId>com.chinaitop</groupId>
7
-	<artifactId>depot-agile</artifactId>
7
+	<artifactId>depot-agile-yunnan</artifactId>
8 8
 	<version>0.0.1-SNAPSHOT</version>
9 9
 	<packaging>jar</packaging>
10 10
 
11
-	<name>depot-agile</name>
11
+	<name>depot-agile-yunnan</name>
12 12
 	<description>Demo project for Spring Boot</description>
13 13
 
14 14
 	<parent>

+ 37 - 15
src/main/resources/bootstrap.yml

@@ -2,28 +2,50 @@ server:
2 2
   port: 9026
3 3
   tomcat:
4 4
     uri-encoding: utf-8
5
-
5
+ 
6 6
 # 注册中心配置
7 7
 eureka:
8 8
   client:
9 9
     service-url:
10
-      defaultZone: http://eureka-depot:9001/eureka/
10
+      defaultZone: http://192.168.123.98:9001/eureka/
11 11
   instance:
12 12
     prefer-ip-address: true
13 13
 
14 14
 spring:
15 15
   application:
16
-    name: depot-agile
17
-  #配置中心配置
18
-  cloud:
19
-    config:
20
-      #使用discovery 时需要将eureka 写到该文件中,开发环境使用该方式,推荐使用。
21
-      discovery:
22
-        enabled: true
23
-        service-id: depot-config-server
24
-      profile: dev
25
-      label: master
16
+    name: depot-agile-g
17
+  # 数据库配置
18
+  datasource:
19
+    driver-class-name: com.mysql.jdbc.Driver
20
+    url: jdbc:mysql://192.168.123.98:3306/lsreport_ts?useUnicode=true&characterEncoding=utf-8&useSSL=false
21
+    username: root
22
+    password: 123456
23
+  activiti:
24
+    check-process-definitions: false
25
+  # 缓存配置
26
+  session:
27
+    store-type: redis
28
+  redis:
29
+    database: 0
30
+    host: 192.168.123.98
31
+    port: 6666
32
+    password: depotredis
33
+    timeout: 3000
34
+    jedis:
35
+      pool:
36
+        max-active: 8
37
+        max-wait: -1
38
+        max-idle: 8
39
+        min-idle: 0
40
+  # 静态资源配置
41
+  resources:
42
+    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
43
+  servlet:
44
+    multipart:
45
+      max-file-size: 10Mb
46
+      max-request-size: 10Mb
26 47
 
27
-  jackson:
28
-    date-format: yyyy-MM-dd
29
-    time-zone: GMT+8
48
+web:
49
+  upload-path: D:/depotImg/
50
+cxf:
51
+  path: /business