Browse Source

修改配置文件,发包

Signed-off-by: tangsong <86121657@qq.com>
tangsong 1 year ago
parent
commit
a08fa355a5
3 changed files with 115 additions and 2 deletions
  1. 15 1
      pom.xml
  2. 99 0
      src/main/resources/bootstrap-devmysql.yml
  3. 1 1
      src/main/resources/bootstrap.yml

+ 15 - 1
pom.xml

@@ -36,7 +36,21 @@
36
             <artifactId>irpt-client</artifactId>
36
             <artifactId>irpt-client</artifactId>
37
             <version>1.0-SNAPSHOT</version>
37
             <version>1.0-SNAPSHOT</version>
38
         </dependency>
38
         </dependency>
39
-
39
+        <dependency>
40
+            <groupId>com.gbase8s</groupId>
41
+            <artifactId>ifxjdbc</artifactId>
42
+            <version>1.0</version>
43
+        </dependency>
44
+        <dependency>
45
+            <groupId>com.gbase</groupId>
46
+            <artifactId>druid</artifactId>
47
+            <version>1.0.28</version>
48
+        </dependency>
49
+        <dependency>
50
+            <groupId>mysql</groupId>
51
+            <artifactId>mysql-connector-java</artifactId>
52
+            <version>8.0.18</version>
53
+        </dependency>
40
     </dependencies>
54
     </dependencies>
41
 
55
 
42
     <build>
56
     <build>

+ 99 - 0
src/main/resources/bootstrap-devmysql.yml

@@ -0,0 +1,99 @@
1
+server:
2
+  port: 12031
3
+spring:
4
+  jpa:
5
+    open-in-view: true
6
+    database: mysql
7
+    show-sql: true
8
+    properties:
9
+      hibernate:
10
+        dialect: org.hibernate.dialect.MySQLDialect
11
+  application:
12
+    name: irpt-app
13
+  devtools:
14
+    restart:
15
+      enabled: false
16
+  datasource:
17
+    type: com.alibaba.druid.pool.DruidDataSource
18
+    url: jdbc:mysql://101.36.160.140:10311/irpt1?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=GMT%2b8
19
+    username: root
20
+    password: admin@1234
21
+    driver-class-name: com.mysql.cj.jdbc.Driver
22
+    druid:
23
+#db-type: mysql
24
+      initial-size: 5
25
+      max-active: 30
26
+      min-idle: 5
27
+      max-wait: 60000
28
+      pool-prepared-statements: true
29
+      max-pool-prepared-statement-per-connection-size: 30
30
+      validation-query: SELECT 1 FROM DUAL
31
+      test-on-borrow: false
32
+      test-on-return: false
33
+      test-while-idle: true
34
+      time-between-connect-error-millis: 60000
35
+      min-evictable-idle-time-millis: 300000
36
+      max-evictable-idle-time-millis: 3000000
37
+      filters: stat,wall
38
+      connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
39
+      use-global-data-source-stat: true
40
+      web-stat-filter:
41
+        url-pattern: /*
42
+        exclusions: /druid/*,*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico
43
+        enabled: true
44
+        session-stat-enable: true
45
+        session-stat-max-count: 10
46
+      stat-view-servlet:
47
+        url-pattern: /druid/*
48
+        reset-enable: true
49
+        login-username: druid
50
+        login-password: druid
51
+      #如果出现错误立刻停止服务。
52
+      #fail-fast: true
53
+mybatis:
54
+  configuration:
55
+    map-underscore-to-camel-case: true
56
+  type-aliases-package: com.unis.ynls.irpt.server.entity
57
+  mapper-locations:
58
+    - classpath:mybatis/mapper/*.xml
59
+#服务注册配置
60
+eureka:
61
+  client:
62
+    service-url:
63
+#      defaultZone: http://eureka-server:11000/eureka/
64
+      defaultZone: http://172.16.0.4:11000/eureka/
65
+  instance:
66
+    prefer-ip-address: true
67
+    status-page-url-path: /swagger-ui.html
68
+
69
+logging:
70
+  level:
71
+    com.unis.app: debug
72
+    root: warn
73
+    org.springframework.web: debug
74
+    org.hibernate: error
75
+    com.unis.app.controller: info
76
+  path: ./log/
77
+
78
+
79
+food:
80
+  variety:
81
+    groupId: PM001
82
+  second:
83
+    groupId: 11
84
+  price:
85
+    groupId: JG001
86
+  store-type:
87
+    groupId: CL001
88
+delay:
89
+  status:
90
+    groupId: ZT002
91
+rule:
92
+  status:
93
+    groupId: ZT001
94
+transfer:
95
+  status:
96
+    groupId: ZT003
97
+
98
+
99
+

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -1,4 +1,4 @@
1
 spring:
1
 spring:
2
   profiles:
2
   profiles:
3
-    active: test
3
+    active: devmysql
4
 
4