Browse Source

prod修改

YeLuo 5 years ago
parent
commit
3c37b67abc
1 changed files with 17 additions and 9 deletions
  1. 17 9
      src/main/resources/env/prod/application.yml

+ 17 - 9
src/main/resources/env/prod/application.yml

@@ -1,17 +1,16 @@
1 1
 # 内嵌服务器配置tomcat,jetty
2 2
 server:
3
-  port: 8085
4
-  context-path: /coin
3
+  port: 8800
5 4
 
6 5
 # mysql
7 6
 spring:
8 7
   application:
9
-    name: COIN
8
+    name: TOURIST
10 9
   datasource:
11 10
     type: com.alibaba.druid.pool.DruidDataSource
12
-    url: jdbc:mysql://10.200.1.36:3306/tourist?characterEncoding=utf-8
11
+    url: jdbc:mysql://10.100.2.12:3306/tourist-dev?useUnicode=true&characterEncoding=utf8&useSSL=false
13 12
     username: root
14
-    password: 123456
13
+    password: Wo4heike
15 14
     driver-class-name: com.mysql.jdbc.Driver
16 15
     # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
17 16
     filters: stat,wall,log4j
@@ -39,12 +38,19 @@ spring:
39 38
     test-on-return: false
40 39
     validation-query: SELECT 1
41 40
 
41
+  jpa:
42
+    show-sql: true
43
+  data:
44
+    jpa:
45
+      repositories:
46
+        enabled: true
42 47
   redis:
43
-    host: 10.200.1.36
44
-    password: 123456
48
+    host: 10.100.2.12
49
+    password: yinghuo
45 50
     port: 6379
46 51
     database: 0
47
-
52
+    pool:
53
+      min-idle: 5
48 54
   jackson:
49 55
     serialization: true
50 56
     time-zone: GMT+8
@@ -56,7 +62,9 @@ spring:
56 62
       enabled: true
57 63
       max-file-size: 50mb
58 64
       max-request-size: 200mb
59
-
65
+  thymeleaf:
66
+    cache: false
67
+    mode: LEGACYHTML5
60 68
 
61 69
 mybatis-plus:
62 70
   # 如果是放在src/main/java目录下 classpath:/com/yourpackage/*/mapper/*Mapper.xml