Przeglądaj źródła

康复计划配置文件

humingfen 7 lat temu
rodzic
commit
82d8e16c2f

+ 1 - 1
common/common-rest-model/src/main/java/com/yihu/jw/restmodel/rehabilitation/RehabilitationInformationVO.java

@ -14,7 +14,7 @@ import java.util.Date;
 * @author humingfen on 2018/4/26.
 * @author humingfen on 2018/4/26.
 */
 */
@JsonInclude(JsonInclude.Include.ALWAYS)
@JsonInclude(JsonInclude.Include.ALWAYS)
@ApiModel(value = "企业表", description = "企业表")
@ApiModel(value = "就诊记录表", description = "就诊记录表")
public class RehabilitationInformationVO extends BaseVO implements Serializable {
public class RehabilitationInformationVO extends BaseVO implements Serializable {
    @ApiModelProperty("居民id")
    @ApiModelProperty("居民id")

+ 20 - 20
svr/svr-rehabilitation/src/main/resources/application.yml

@ -1,34 +1,34 @@
##如果有配置服务的话,远程服务器和本地服务器配置不一致的情况下,优先远程的为主  git上 svr-base ->  git application ->本地 appliction ->本地 bootstarp
##如果有配置服务的话,远程服务器和本地服务器配置不一致的情况下,优先远程的为主  git上 svr-base ->  git application ->本地 appliction ->本地 bootstarp
server:
server:
  port: 10051
  port: 10051
spring:
spring:
  application:
  application:
    name:  svr-rehabilitation  #注册到发现服务的id 如果id一样 eurika会自动做负载
    name:  svr-rehabilitation  #注册到发现服务的id 如果id一样 eurika会自动做负载
  datasource:
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    driver-class-name: com.mysql.jdbc.Driver
    max-active: 50
    max-active: 50
    max-idle: 50 #最大空闲连接
    min-idle: 10 #最小空闲连接
    max-idle: 50 #最大空闲连接
    min-idle: 10 #最小空闲连接
    validation-query-timeout: 20
    validation-query-timeout: 20
    log-validation-errors: true
    log-validation-errors: true
    validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
    validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
    test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
    test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
    validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
    validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
    test-on-borrow: true #鎸囨槑鏄�惁鍦ㄤ粠姹犱腑鍙栧嚭杩炴帴鍓嶈繘琛屾�楠岋紝 濡傛灉妫€楠屽け璐ワ紝 鍒欎粠姹犱腑鍘婚櫎杩炴帴骞跺皾璇曞彇鍑哄彟涓€涓�€傛敞鎰忥細 璁剧疆涓簍rue 鍚庡�鏋滆�鐢熸晥锛寁alidationQuery 鍙傛暟蹇呴』璁剧疆涓洪潪绌哄瓧绗︿覆
    test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
    idle-timeout: 30000
    idle-timeout: 30000
    connection-test-query: SELECT 1
    connection-test-query: SELECT 1
    num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
    test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
    min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
    time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
    num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
    test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
    min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
    time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  data:
  data:
    elasticsearch: #ElasticsearchProperties
    elasticsearch: #ElasticsearchProperties
      cluster-name: jkzl #默认即为elasticsearch  集群名
      cluster-nodes: 172.19.103.68:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
      local: false #是否本地连接
      cluster-name: jkzl #默认即为elasticsearch  集群名
      cluster-nodes: 172.19.103.68:9300 #閰嶇疆es鑺傜偣淇℃伅锛岄€楀彿鍒嗛殧锛屽�鏋滄病鏈夋寚瀹氾紝鍒欏惎鍔–lientNode
      local: false #鏄�惁鏈�湴杩炴帴
      properties: # Additional properties used to configure the client.
      properties: # Additional properties used to configure the client.
        enable: true
        enable: true
  # JEST (Elasticsearch HTTP client) (JestProperties)
  # JEST (Elasticsearch HTTP client) (JestProperties)
@ -43,7 +43,7 @@ spring:
#      proxy.port:  # Proxy port the HTTP client should use.
#      proxy.port:  # Proxy port the HTTP client should use.
#      proxy.host:  # Proxy host the HTTP client should use.
#      proxy.host:  # Proxy host the HTTP client should use.
#hibernate 配置
#hibernate 閰嶇疆
hibernate:
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
  dialect: org.hibernate.dialect.MySQL5Dialect
  show_sql: true
  show_sql: true
@ -51,15 +51,15 @@ hibernate:
    naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
    naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
fast-dfs:
fast-dfs:
  tracker-server: 172.19.103.54:22122 #服务器地址
  connect-timeout: 2 #链接超时时间
  tracker-server: 172.19.103.54:22122 #鏈嶅姟鍣ㄥ湴鍧€
  connect-timeout: 2 #閾炬帴瓒呮椂鏃堕棿
  network-timeout: 30
  network-timeout: 30
  charset: ISO8859-1 #编码
  charset: ISO8859-1 #缂栫爜
  http:
  http:
    tracker-http-port: 80
    tracker-http-port: 80
    anti-steal-token: no
    anti-steal-token: no
    secret-key: FastDFS1234567890
    secret-key: FastDFS1234567890
  pool: #连接池大小
  pool: #连接池大小
    init-size: 5
    init-size: 5
    max-size: 20
    max-size: 20
    wait-time: 500
    wait-time: 500