Преглед изворни кода

整理配置文件不需要的Hibernate配置,保留标准管理的Hibernate配置

Sand Wen пре 9 година
родитељ
комит
1d385ba4fc
10 измењених фајлова са 10 додато и 149 уклоњено
  1. 1 5
      application.yml
  2. 1 21
      svr-org.yml
  3. 1 18
      svr-pack-mgr.yml
  4. 0 19
      svr-pack-resolve.yml
  5. 0 18
      svr-patient.yml
  6. 0 16
      svr-profile-browser.yml
  7. 0 13
      svr-resources.yml
  8. 0 16
      svr-security.yml
  9. 7 7
      svr-standard.yml
  10. 0 16
      svr-user.yml

+ 1 - 5
application.yml

@ -1,11 +1,7 @@
spring:
  jpa:
    database-platform: org.hibernate.dialect.MySQL5Dialect
    hibernate:
      dialect: org.hibernate.dialect.MySQL5Dialect
quartz:
  auto-startup: false
    hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
#应用部署所在区域
deploy:

+ 1 - 21
svr-org.yml

@ -1,5 +1,4 @@

data-source:
data-source:
  driver-class-name: com.mysql.jdbc.Driver
  initialize-size: 1
  max-total: 20
@ -9,10 +8,6 @@ data-source:
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
---
spring:
  profiles: dev
@ -22,11 +17,6 @@ data-source:
  user-name: ha
  password: ha
hibernate:
  show-sql: true
  format-sql: true
---
spring:
  profiles: test
@ -36,20 +26,10 @@ data-source:
  user-name: weifuwu
  password: weifuwu
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: true
      format-sql: true
---
spring:
  profiles: prod
hibernate:
  show-sql: true
  format-sql: true
data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha

+ 1 - 18
svr-pack-mgr.yml

@ -8,9 +8,6 @@ data-source:
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
fast-dfs:
  pool:
    init-size: 5
@ -28,7 +25,6 @@ fast-dfs:
    anti-steal-token: no
    secret-key: FastDFS1234567890
---
spring:
  profiles: dev
@ -38,14 +34,10 @@ data-source:
  user-name: ha
  password: ha
hibernate:
  show-sql: true
  format-sql: true
fast-dfs:
  tracker-server: 172.19.103.54:22122
---
spring:
  profiles: test
@ -55,21 +47,13 @@ data-source:
  user-name: weifuwu
  password: weifuwu
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: true
      format-sql: true
fast-dfs:
  tracker-server: 172.19.103.13:22122
---
spring:
  profiles: prod
hibernate:
  show-sql: true
  format-sql: true
fast-dfs:
  tracker-server: 11.1.2.9:22122
@ -77,4 +61,3 @@ data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha
  password: jkzlxm

+ 0 - 19
svr-pack-resolve.yml

@ -8,9 +8,6 @@ data-source:
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
redis:
  connection-factory:
    port: 6379
@ -54,10 +51,6 @@ data-source:
  user-name: ha
  password: ha
hibernate:
  show-sql: true
  format-sql: true
redis:
  connection-factory:
    host-name: 172.19.103.47
@ -78,12 +71,6 @@ data-source:
  username: fujian
  password: fujian
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: true
      format-sql: true
redis:
  connection-factory:
    host-name: 172.17.110.68
@ -104,12 +91,6 @@ data-source:
  username: ha
  password: jkzlxm
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: false
      format-sql: false
redis:
  connection-factory:
    host-name: 11.1.2.20

+ 0 - 18
svr-patient.yml

@ -8,9 +8,6 @@ data-source:
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
fast-dfs:
  pool:
    init-size: 5
@ -27,7 +24,6 @@ fast-dfs:
    anti-steal-token: no
    secret-key: FastDFS1234567890
---
spring:
  profiles: dev
@ -37,11 +33,6 @@ data-source:
  user-name: ha
  password: ha
hibernate:
  show-sql: true
  format-sql: true
---
spring:
  profiles: test
@ -51,19 +42,10 @@ data-source:
  user-name: weifuwu
  password: weifuwu
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: true
      format-sql: true
---
spring:
  profiles: prod
hibernate:
  show-sql: true
  format-sql: true
data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha

+ 0 - 16
svr-profile-browser.yml

@ -8,9 +8,6 @@ data-source:
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
redis:
  pool:
    max-total: 10
@ -23,7 +20,6 @@ solr:
#error code and message
---
spring:
  profiles: dev
@ -33,10 +29,6 @@ data-source:
  user-name: ha
  password: ha
hibernate:
  show_sql: true
  format_sql: true
redis:
  connection-factory:
    host-name: 172.19.103.47
@ -54,10 +46,6 @@ data-source:
  username: fujian
  password: fujian
hibernate:
  show_sql: true
  format_sql: true
redis:
  connection-factory:
    host-name: 172.17.110.68
@ -75,10 +63,6 @@ data-source:
  username: ha
  password: jkzlxm
hibernate:
  show_sql: false
  format_sql: false
redis:
  connection-factory:
    host-name: 11.1.2.20

+ 0 - 13
svr-resources.yml

@ -1,13 +0,0 @@
---
spring:
  profiles: dev
---
spring:
  profiles: test
---
spring:
  profiles: prod

+ 0 - 16
svr-security.yml

@ -11,7 +11,6 @@ data-source:
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
---
spring:
  profiles: dev
@ -21,11 +20,6 @@ data-source:
  user-name: ha
  password: ha
hibernate:
  show-sql: true
  format-sql: true
---
spring:
  profiles: test
@ -35,20 +29,10 @@ data-source:
  user-name: weifuwu
  password: weifuwu
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: true
      format-sql: true
---
spring:
  profiles: prod
hibernate:
  show-sql: true
  format-sql: true
data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha

+ 7 - 7
svr-standard.yml

@ -7,6 +7,7 @@ data-source:
  validation-query: SELECT 1
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
@ -26,13 +27,14 @@ fast-dfs:
    anti-steal-token: no
    secret-key: FastDFS1234567890
---
spring:
  profiles: dev
hibernate:
  show-sql: true
  format-sql: true
fast-dfs:
  tracker-server: 172.19.103.54:22122
@ -44,6 +46,7 @@ data-source:
---
spring:
  profiles: test
fast-dfs:
  tracker-server: 172.19.103.13:22122
@ -55,12 +58,15 @@ data-source:
hibernate:
  show-sql: true
  format-sql: true
---
spring:
  profiles: prod
hibernate:
  show-sql: true
  format-sql: true
fast-dfs:
  tracker-server: 11.1.2.9:22122
@ -68,9 +74,3 @@ data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha
  password: jkzlxm

+ 0 - 16
svr-user.yml

@ -12,10 +12,6 @@ data-source:
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
---
spring:
  profiles: dev
@ -25,11 +21,6 @@ data-source:
  user-name: ha
  password: ha
hibernate:
  show-sql: true
  format-sql: true
---
spring:
  profiles: test
@ -39,13 +30,6 @@ data-source:
  user-name: weifuwu
  password: weifuwu
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: true
      format-sql: true
---
spring:
  profiles: prod