diff --git a/epdc-cloud-message/src/main/resources/application-dev.yml b/epdc-cloud-message/src/main/resources/application-dev.yml new file mode 100644 index 0000000..efca7b9 --- /dev/null +++ b/epdc-cloud-message/src/main/resources/application-dev.yml @@ -0,0 +1,56 @@ +spring: + redis: + database: @spring.redis.index@ + host: @spring.redis.host@ + timeout: 30s + port: @spring.redis.port@ + password: @spring.redis.password@ + datasource: + druid: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://rm-m5eguiv2827bdye798o.mysql.rds.aliyuncs.com:10001/yushan_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai + username: yushan_epdc_test + password: elink-epdc@yushan + #Oracle +# driver-class-name: oracle.jdbc.OracleDriver +# url: jdbc:oracle:thin:@localhost:1521:xe +# username: renren_cloud +# password: 123456 + #SQLServer +# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver +# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_cloud +# username: sa +# password: 123456 + #postgresql +# driver-class-name: org.postgresql.Driver +# url: jdbc:postgresql://localhost:5432/renren_cloud +# username: postgres +# password: 123456 + initial-size: 10 + max-active: 100 + min-idle: 10 + max-wait: 60000 + pool-prepared-statements: true + max-pool-prepared-statement-per-connection-size: 20 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + #Oracle需要打开注释 + #validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false + + +##多数据源的配置,需要引用renren-commons-dynamic-datasource +#dynamic: +# datasource: +# slave1: +# driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver +# url: jdbc:sqlserver://localhost:1433;DatabaseName=renren_cloud +# username: sa +# password: 123456 +# slave2: +# driver-class-name: org.postgresql.Driver +# url: jdbc:postgresql://localhost:5432/renren_cloud +# username: postgres +# password: 123456 diff --git a/epdc-cloud-message/src/main/resources/application-test.yml b/epdc-cloud-message/src/main/resources/application-test.yml new file mode 100644 index 0000000..04c599c --- /dev/null +++ b/epdc-cloud-message/src/main/resources/application-test.yml @@ -0,0 +1,36 @@ +spring: + redis: + database: @spring.redis.index@ + host: @spring.redis.host@ + timeout: 30s + port: @spring.redis.port@ + password: @spring.redis.password@ + datasource: + druid: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://115.28.104.30:33066/yushan_esua_epdc_admin?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai + username: esrs + password: elinkesrs@Yushan2021 + initial-size: 10 + max-active: 100 + min-idle: 10 + max-wait: 60000 + pool-prepared-statements: true + max-pool-prepared-statement-per-connection-size: 20 + time-between-eviction-runs-millis: 60000 + min-evictable-idle-time-millis: 300000 + #Oracle需要打开注释 + #validation-query: SELECT 1 FROM DUAL + test-while-idle: true + test-on-borrow: false + test-on-return: false + stat-view-servlet: + enabled: true + url-pattern: /druid/* + #login-username: admin + #login-password: admin + filter: + stat: + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: false