liutielin 3 years ago
parent
commit
a6c53b1e25
3 changed files with 33 additions and 2 deletions
  1. 14 0
      .gitignore
  2. 2 2
      src/main/resources/application-prod.yml
  3. 17 0
      src/main/resources/application.yml

+ 14 - 0
.gitignore

@@ -0,0 +1,14 @@
+.classpath           
+.project
+.factorypath
+.idea
+.DS_Store
+*.iml
+.settings/            
+bin/
+log/
+target/
+
+/logs/
+/doc/
+/src/test/java/

+ 2 - 2
src/main/resources/application-prod.yml

@@ -4,8 +4,8 @@ spring:
   datasource:
     type: com.zaxxer.hikari.HikariDataSource
     url: jdbc:mysql://rm-2ze71npbkyc536o1a.mysql.rds.aliyuncs.com:3306/up-mpb?characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true&useSSL=false
-    username: up_mpb
-    password: up%fgks7w3V
+    username: root #up_mpb
+    password: 'up#Mpb&prod' #up%fgks7w3V
     hikari:
       minimum-idle: 2
       maximum-pool-size: 10

+ 17 - 0
src/main/resources/application.yml

@@ -1,7 +1,24 @@
+server:
+  port: 8080
+  servlet:
+    session:
+      timeout:
+        86400
 spring:
   profiles:
     active:
     - dev
+  thymeleaf:
+    cache: false #默认true
+    enabled: true #启用MVC Thymeleaf视图分辨率  默认true
+    check-template-location: true #检查模板是否存在,然后再呈现 默认true
+    enable-spring-el-compiler: true #默认false
+    mode: LEGACYHTML5
+    encoding: utf-8
+    servlet:
+      content-type: text/html
+    prefix: classpath:/templates/
+    suffix: .html
   
 mybatis:
   configuration: