Browse Source

添加ailishi配置文件

chenyi406 2 years ago
parent
commit
c656638410
1 changed files with 32 additions and 0 deletions
  1. 32 0
      src/main/resources/application-ailishi.yml

+ 32 - 0
src/main/resources/application-ailishi.yml

@@ -0,0 +1,32 @@
+server:
+  port: 8082 # Key product method
+spring:
+  redis:
+    host: localhost
+    port: 6379
+    timeout: 9000
+  jackson:
+    default-property-inclusion: non_null
+    date-format: yyyy-MM-dd HH:mm:ss
+    time-zone: GMT+8
+  # MySQL
+  datasource:
+    type: com.alibaba.druid.pool.DruidDataSource
+    driver-class-name: com.mysql.cj.jdbc.Driver
+    url: jdbc:mysql://59.110.141.39:3306/old_phone?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=true
+    username: useryxk
+    password: CHENyi406@
+    dbcp2:
+      min-idle: 10
+      initial-size: 15
+      max-total: 20
+      max-wait-millis: 2000
+# mybatis-plus
+mybatis-plus:
+  type-aliases-package: com.zy.bms.model
+  mapper-locations: classpath:mapper/*.xml
+  configuration:
+    map-underscore-to-camel-case: false  # close "user_id"  use userId
+  global-config:
+    db-config:
+      id-type: auto