Browse Source

重构配置文件结构

Sand Wen 9 years ago
parent
commit
71dda7eb53

+ 0 - 36
application-dev.properties

@ -1,36 +0,0 @@
#-------------------------------------------------------------#
#-------------------------开发环境配置-------------------------#
#-------------------------------------------------------------#
#quartz
quartz.auto-startup=false
#修改用户默认密码
default.password=1223456
#hibernate
hibernate.hibernate-properties.hibernate.show_sql=true
hibernate.hibernate-properties.hibernate.format_sql=true
#data source, mysql as backend
data-source.url=jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
data-source.user-name=ha
data-source.password=ha
#redis
redis.connection-factory.host-name=172.19.103.47
#fastDFS
fast-dfs.tracker-server=172.19.103.54:22122
#kerberos
kerberos.user-name=hadoopdev/cOde@for_hadoop
kerberos.key-table=kerberos/hadoopdev.keytab
kerberos.config-file=kerberos/krb5.conf
#hadoop-hbase
hadoop.security.enable-kerberos=false
#solr
solr.server=http://172.19.103.10:8983/solr
solr.zookeeper=host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr

+ 0 - 33
application-prod.properties

@ -1,33 +0,0 @@
#-------------------------------------------------------------#
#-------------------------Éú²ú»·¾³ÅäÖÃ-------------------------#
#-------------------------------------------------------------#
#quartz
quartz.auto-startup=true
#hibernate
hibernate.hibernate-properties.hibernate.show_sql=false
hibernate.hibernate-properties.hibernate.format_sql=false
#data source, mysql as backend
data-source.url=jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
data-source.username=ha
data-source.password=jkzlxm
#redis
redis.connection-factory.host-name=11.1.2.20
#fastDFS
fast-dfs.tracker-server=11.1.2.9:22122
#kerberos
kerberos.username=hadoopdev/cOde@for_hadoop
kerberos.key-table=kerberos/client/hadoopdev.keytab
kerberos.config-file=kerberos/client/krb5.conf
#hadoop-hbase
hadoop.security.enable-kerberos=true
#solr
server=http://172.19.103.10:8983/solr
zookeeper=host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr

+ 0 - 33
application-test.properties

@ -1,33 +0,0 @@
#-------------------------------------------------------------#
#-------------------------²âÊÔ»·¾³ÅäÖÃ-------------------------#
#-------------------------------------------------------------#
#quartz
quartz.auto-startup=true
#hibernate
hibernate.hibernate-properties.hibernate.show_sql=true
hibernate.hibernate-properties.hibernate.format_sql=true
#data source, mysql as backend
data-source.url=jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
data-source.username=fujian
data-source.password=fujian
#redis
redis.connection-factory.host-name=172.17.110.68
#fastDFS
fast-dfs.tracker-server=172.19.103.13:22122
#kerberos
kerberos.username=hadoopdev/cOde@for_hadoop
kerberos.key-table=kerberos/client/hadoopdev.keytab
kerberos.config-file=kerberos/client/krb5.conf
#hadoop-hbase
hadoop.security.enable-kerberos=true
#solr
server=http://172.19.103.10:8983/solr
zookeeper=host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr

+ 0 - 49
application.properties

@ -1,49 +0,0 @@
#-------------------------------------------------------------#
#-------------------------通用环境配置-------------------------#
#-------------------------------------------------------------#
#部署区域
admin.region=3502
#quartz
quartz.scheduler-name=EhrArchiveScheduler
#data source, use mysql as backend
data-source.driver-class-name=com.mysql.jdbc.Driver
data-source.initialize-size=1
data-source.max-total=10
data-source.max-idle=10
data-source.min-idle=1
data-source.validation-query=SELECT 1
data-source.test-on-borrow=true
data-source.remove-abandoned-timeout=55
#hibernate
hibernate.hibernate-properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.mapping-locations=classpath:hbm/*.hbm.xml;classpath:hbm/common/*.hbm.xml
hibernate.show-sql=true
hibernate.format-sql=true
#redis
redis.pool.max-total=10
redis.pool.max-idle=5
redis.pool.min-idle=3
redis.connection-factory.port=6379
#fastDFS
fast-dfs.pool.init-size=5
fast-dfs.pool.max-size=20
fast-dfs.pool.wait-time=500
fast-dfs.connect-timeout=2
fast-dfs.network-timeout=30
fast-dfs.fast-dfs.charset=ISO8859-1
fast-dfs.http.tracker-http-port=80
fast-dfs.http.anti-steal_token=no
fast-dfs.http.secret-key=FastDFS1234567890
#hadoop-hbase
#此部分参数各环境均不一样,详细参见各环境配置
#solr
solr.zkClientTimeout=10000
solr.zkConnectTimeout=10000

+ 18 - 0
application.yml

@ -0,0 +1,18 @@
quartz:
  auto-startup: false
#应用部署所在区域
deploy:
  region: 3502
---
spring:
  profiles: dev
---
spring:
  profiles: test
---
spring:
  profiles: prod

+ 0 - 25
svr-admin.yml

@ -1,25 +0,0 @@
#总支撑平台管理参数
admin:
  region: 3502
  default-user-password: 123465
---
spring:
  profiles: test
admin:
  region: 3502
---
spring:
  profiles: dev
admin:
  region: 3500
---
spring:
  profiles: prod
admin:
  region: 3500

+ 0 - 2
svr-pack-mgr.properties

@ -1,2 +0,0 @@
# JSON도갭관륩蛟댄轎췄甘
ehr.json.package.unknown						= 灌列돨JSON관, {0}

+ 1 - 0
svr-pack-mgr.yml

@ -1,4 +1,5 @@
---
spring:
  profiles: dev

+ 119 - 0
svr-pack-resolve.yml

@ -0,0 +1,119 @@
data-source:
  driver-class-name: com.mysql.jdbc.Driver
  initialize-size: 1
  max-total: 20
  max-idle: 10
  min-idle: 1
  validation-query: SELECT 1
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
redis:
  connection-factory:
    port: 6379
  pool:
    max-total: 10
    max-idle: 5
    min-idle: 3
fast-dfs:
  pool:
    init-size: 5
    max-size: 20
    wait-time: 500
  connect-timeout: 2
  network-timeout: 30
  fast-dfs:
    charset: ISO8859-1
  http:
    tracker-http-port: 80
    anti-steal-token: no
    secret-key: FastDFS1234567890
solr:
  zkClientTimeout: 10000
  zkConnectTimeout: 10000
#error code and message
---
spring:
  profiles: dev
data-source:
  url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha
  password: ha
hibernate:
  show-sql: true
  format-sql: true
redis:
  connection-factory:
    host-name: 172.19.103.47
fast-dfs:
  tracker-server: 172.19.103.54:22122
solr:
  server: http://172.19.103.10:8983/solr
  zookeeper: host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr
---
spring:
  profiles: test
data-source:
  url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  username: fujian
  password: fujian
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: true
      format-sql: true
redis:
  connection-factory:
    host-name: 172.17.110.68
fast-dfs:
  tracker-server: 172.19.103.13:22122
solr:
  server: http://172.19.103.10:8983/solr
  zookeeper: host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr
---
spring:
  profiles: prod
data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  username: ha
  password: jkzlxm
hibernate:
  hibernate-properties:
    hibernate:
      show-sql: false
      format-sql: false
redis:
  connection-factory:
    host-name: 11.1.2.20
fast-dfs:
  tracker-server: 11.1.2.9:22122
solr:
  server: http://172.19.103.10:8983/solr
  zookeeper: host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr

+ 88 - 0
svr-profile-browser.yml

@ -0,0 +1,88 @@
data-source:
  driver-class-name: com.mysql.jdbc.Driver
  initialize-size: 1
  max-total: 20
  max-idle: 10
  min-idle: 1
  validation-query: SELECT 1
  test-on-borrow: true
  remove-abandoned-timeout: 55
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
redis:
  pool:
    max-total: 10
    max-idle: 5
    min-idle: 3
solr:
  zkClientTimeout: 10000
  zkConnectTimeout: 10000
#error code and message
---
spring:
  profiles: dev
data-source:
  url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha
  password: ha
hibernate:
  show_sql: true
  format_sql: true
redis:
  connection-factory:
    host-name: 172.19.103.47
solr:
  server: http://172.19.103.10:8983/solr
  zookeeper: host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr
---
spring:
  profiles: test
data-source:
  url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  username: fujian
  password: fujian
hibernate:
  show_sql: true
  format_sql: true
redis:
  connection-factory:
    host-name: 172.17.110.68
solr:
  server: http://172.19.103.10:8983/solr
  zookeeper: host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr
---
spring:
  profiles: prod
data-source:
  url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  username: ha
  password: jkzlxm
hibernate:
  show_sql: false
  format_sql: false
redis:
  connection-factory:
    host-name: 11.1.2.20
solr:
  server: http://172.19.103.10:8983/solr
  zookeeper: host-172-17-110-23,host-172-17-110-27,host-172-17-110-26:2181/solr

+ 1 - 2
svr-resources.yml

@ -1,5 +1,4 @@
resources:
  update-on-startup: true
---
spring:

+ 15 - 0
svr-user.yml

@ -0,0 +1,15 @@
#用户默认密码
user:
  default-password: 123456
---
spring:
  profiles: dev
---
spring:
  profiles: test
---
spring:
  profiles: prod