|
@@ -1,147 +1,125 @@
|
|
-#spring.profiles.active: dev
|
|
|
|
-#
|
|
|
|
-#spring:
|
|
|
|
-# cache:
|
|
|
|
-# guava:
|
|
|
|
-# spec: expireAfterWrite=30s
|
|
|
|
-# datasource:
|
|
|
|
-# driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
-# # Keep the connection alive if idle for a long time (needed in production)
|
|
|
|
-# testWhileIdle: true
|
|
|
|
-# validationQuery: SELECT 1
|
|
|
|
-# # Show or not log for each sql query
|
|
|
|
-# jpa:
|
|
|
|
-# show-sql: true
|
|
|
|
-# # Hibernate ddl auto (create, create-drop, update)
|
|
|
|
-# hibernate:
|
|
|
|
-# ddl-auto: validate
|
|
|
|
-# #hbm2ddl.auto: update
|
|
|
|
-# # Naming strategy
|
|
|
|
-# naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
|
|
|
|
-# # The SQL dialect makes Hibernate generate better SQL for the chosen database
|
|
|
|
-# properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
|
|
|
|
-# thymeleaf:
|
|
|
|
-# content-type: text/html
|
|
|
|
-# mode: LEGACYHTML5
|
|
|
|
-# suffix: .html
|
|
|
|
-# prefix: classpath:/templates/
|
|
|
|
-# encoding: UTF-8
|
|
|
|
-# cache: false
|
|
|
|
-## enabled: true
|
|
|
|
-## session:``
|
|
|
|
-## stroe-type: redis
|
|
|
|
-#
|
|
|
|
-#wechat:
|
|
|
|
-# appId: wx60f06d61f21804be
|
|
|
|
-# appSecret: f84db4dc62377926624093b49ac3be1f
|
|
|
|
-#
|
|
|
|
-#github:
|
|
|
|
-# clientId: 4e8e65b7e3bdeee9229b
|
|
|
|
-# clientSecret: a77f1ea04c6f370ec2ad295e29f307565658f8c3
|
|
|
|
-#
|
|
|
|
-#mybatis:
|
|
|
|
-# typeAliasesPackage: cn.iselab.mooctest.user.model
|
|
|
|
-# configuration:
|
|
|
|
-# map-underscore-to-camel-case: true
|
|
|
|
-#
|
|
|
|
-#---
|
|
|
|
-## 开发环境
|
|
|
|
-#spring:
|
|
|
|
-# profiles: dev
|
|
|
|
-# datasource:
|
|
|
|
-# driverClassName: com.mysql.jdbc.Driver
|
|
|
|
-# url: jdbc:mysql://111.231.143.6:3306/mooctest_user_service?useUnicode=yes&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
|
|
|
-# username: root
|
|
|
|
-# password: xuexiaobo.
|
|
|
|
-#
|
|
|
|
-# dubbo:
|
|
|
|
-# application.name: user-service-provider
|
|
|
|
-# registry.address: zookeeper://101.37.175.111:2181
|
|
|
|
-# protocol.name: dubbo
|
|
|
|
-# protocol.port: 20900
|
|
|
|
-## protocol.host: 127.0.0.1
|
|
|
|
-# scan: cn.iselab.mooctest.user.rpc
|
|
|
|
-# monitor.protocal: registry
|
|
|
|
-# provider.timeout: 120000
|
|
|
|
-# provider.retries: 0
|
|
|
|
-#
|
|
|
|
-# redis:
|
|
|
|
-# host: 114.55.91.27
|
|
|
|
-# port: 6379
|
|
|
|
-# pool:
|
|
|
|
-# max-idle: 8
|
|
|
|
-# min-idle: 0
|
|
|
|
-# max-wait: -1
|
|
|
|
-# max-active: 8
|
|
|
|
-# database: 2
|
|
|
|
-## host: localhost
|
|
|
|
-## host: 111.231.143.6
|
|
|
|
-#
|
|
|
|
-#mail:
|
|
|
|
-# host: smtp.126.com
|
|
|
|
-# username: diors_po@126.com
|
|
|
|
-# password: xxb19970213
|
|
|
|
-# default-encoding: UTF-8
|
|
|
|
-#
|
|
|
|
-#
|
|
|
|
-#
|
|
|
|
-#server:
|
|
|
|
-# port: 8081
|
|
|
|
-#
|
|
|
|
-#logging.config: classpath:log4j2.yaml
|
|
|
|
-#
|
|
|
|
-#---
|
|
|
|
-## 测试服务环境
|
|
|
|
-#spring:
|
|
|
|
-# profiles: test
|
|
|
|
-# datasource:
|
|
|
|
-# url: jdbc:mysql://101.37.175.111:3306/mooctest_user?useUnicode=yes&characterEncoding=UTF-8 # please modify manually
|
|
|
|
-# username: mooctest # please modify manually
|
|
|
|
-# password: secr3t! # please modify manually
|
|
|
|
-#
|
|
|
|
-# dubbo:
|
|
|
|
-# application.name: user-service-provider
|
|
|
|
-# registry.address: zookeeper://101.37.175.111:2181
|
|
|
|
-# protocol.name: dubbo
|
|
|
|
-# protocol.port: 20900
|
|
|
|
-# protocol.host: 101.37.175.111
|
|
|
|
-# scan: cn.iselab.mooctest.user.rpc
|
|
|
|
-# monitor.protocal: registry
|
|
|
|
-# provider.timeout: 300000
|
|
|
|
-# provider.retries: 0
|
|
|
|
-#
|
|
|
|
-#server:
|
|
|
|
-# port: 8191
|
|
|
|
-#
|
|
|
|
-#logging.config: classpath:log4j2.test.yaml
|
|
|
|
-#logging.access.directory: /home/share/log
|
|
|
|
-#
|
|
|
|
-#spring.jpa.show-sql: false
|
|
|
|
-#
|
|
|
|
-#---
|
|
|
|
-## 线上服务环境
|
|
|
|
-#spring:
|
|
|
|
-# profiles: online
|
|
|
|
-# datasource:
|
|
|
|
-# url: jdbc:mysql://10.24.153.13:3306/mooctest_user?useUnicode=yes&characterEncoding=UTF-8
|
|
|
|
-# username: mooctest
|
|
|
|
-# password: secr3t!
|
|
|
|
-#
|
|
|
|
-# dubbo:
|
|
|
|
-# application.name: user-service-provider
|
|
|
|
-# registry.address: zookeeper://118.178.131.206:2181
|
|
|
|
-# protocol.name: dubbo
|
|
|
|
-# protocol.port: 20890
|
|
|
|
-# protocol.host: 114.55.91.83
|
|
|
|
-# scan: cn.iselab.mooctest.user.rpc
|
|
|
|
-# monitor.protocal: registry
|
|
|
|
-# provider.timeout: 120000
|
|
|
|
-# provider.retries: 0
|
|
|
|
-#
|
|
|
|
-#server:
|
|
|
|
-# port: 8191
|
|
|
|
-#
|
|
|
|
-#logging.config: classpath:log4j2.online.yaml
|
|
|
|
-#logging.access.directory: /home/share/log
|
|
|
|
-#
|
|
|
|
-#spring.jpa.show-sql: false
|
|
|
|
|
|
+spring.profiles.active: private-cloud-localhost
|
|
|
|
+server:
|
|
|
|
+ port: 8081
|
|
|
|
+
|
|
|
|
+default:
|
|
|
|
+ goto: http://127.0.0.1
|
|
|
|
+ login: http://127.0.0.1:8081/page/login
|
|
|
|
+
|
|
|
|
+feature:
|
|
|
|
+ email: false
|
|
|
|
+
|
|
|
|
+foo:
|
|
|
|
+ bar
|
|
|
|
+github:
|
|
|
|
+ clientId: 4e8e65b7e3bdeee9229b
|
|
|
|
+ clientSecret: a77f1ea04c6f370ec2ad295e29f307565658f8c3
|
|
|
|
+loggin:
|
|
|
|
+ access:
|
|
|
|
+ directory: /home/share/log
|
|
|
|
+ config: classpath:log4j2.test.yaml
|
|
|
|
+mail:
|
|
|
|
+ default-encoding: UTF-8
|
|
|
|
+ host: smtp.126.com
|
|
|
|
+ password: xxb19970213
|
|
|
|
+ username: diors_po@126.com
|
|
|
|
+mobile:
|
|
|
|
+ accountSid: 8a216da872fe1ebf0173047c1477033e
|
|
|
|
+ accountToken: 953f4acac52546ae88a350c93d257b9d
|
|
|
|
+ appId: 8a216da872fe1ebf0173047c15830345
|
|
|
|
+mybatis:
|
|
|
|
+ configuration:
|
|
|
|
+ map-underscore-to-camel-case: true
|
|
|
|
+ typeAliasesPackage: cn.iselab.mooctest.user.model
|
|
|
|
+oss:
|
|
|
|
+ accessKeyId: LTAI4FdrT3HsfdR5edBVN7ws
|
|
|
|
+ accessKeySecret: yroxrpm46DzTyzHrLBZzS3MRNIicP6
|
|
|
|
+ bucketName: mooctest-user-server
|
|
|
|
+ endPoint: http://oss-cn-shanghai.aliyuncs.com
|
|
|
|
+
|
|
|
|
+---
|
|
|
|
+spring:
|
|
|
|
+ profiles: private-cloud
|
|
|
|
+ cache:
|
|
|
|
+ guava:
|
|
|
|
+ spec:
|
|
|
|
+ expireAfterWrite: 30s
|
|
|
|
+ datasource:
|
|
|
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
+ testWhileIdle: true
|
|
|
|
+ validationQuery: SELECT 1
|
|
|
|
+ url: jdbc:mysql://mysql:3306/mooctest_user?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
|
|
|
+ username: root
|
|
|
|
+ password: Customs2019
|
|
|
|
+ hibernate:
|
|
|
|
+ ddl-auto: validate
|
|
|
|
+ naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
|
|
|
|
+ properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
|
|
|
|
+ jpa:
|
|
|
|
+ show-sql: true
|
|
|
|
+
|
|
|
|
+ redis:
|
|
|
|
+ host: redis
|
|
|
|
+ password:
|
|
|
|
+ pool:
|
|
|
|
+ max-active: 8
|
|
|
|
+ max-idle: 8
|
|
|
|
+ max-wait: -1
|
|
|
|
+ min-idle: 0
|
|
|
|
+ port: 6379
|
|
|
|
+
|
|
|
|
+ thymeleaf:
|
|
|
|
+ cache: false
|
|
|
|
+ content-type: text/html
|
|
|
|
+ encoding: UTF-8
|
|
|
|
+ mode: LEGACYHTML5
|
|
|
|
+ prefix: classpath:/templates/
|
|
|
|
+ suffix: .html
|
|
|
|
+website:
|
|
|
|
+ domainName: 127.0.0.1
|
|
|
|
+wecaht:
|
|
|
|
+ appSecret: f84db4dc62377926624093b49ac3be1f
|
|
|
|
+ appId: wx60f06d61f21804be
|
|
|
|
+---
|
|
|
|
+spring:
|
|
|
|
+ profiles: private-cloud-localhost
|
|
|
|
+ cache:
|
|
|
|
+ guava:
|
|
|
|
+ spec:
|
|
|
|
+ expireAfterWrite: 30s
|
|
|
|
+ datasource:
|
|
|
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
+ testWhileIdle: true
|
|
|
|
+ validationQuery: SELECT 1
|
|
|
|
+ url: jdbc:mysql://127.0.0.1:3306/mooctest_user?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
|
|
|
+ username: root
|
|
|
|
+ password: Customs2019
|
|
|
|
+ hibernate:
|
|
|
|
+ ddl-auto: validate
|
|
|
|
+ naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
|
|
|
|
+ properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
|
|
|
|
+ jpa:
|
|
|
|
+ show-sql: true
|
|
|
|
+
|
|
|
|
+ redis:
|
|
|
|
+ host: 127.0.0.1
|
|
|
|
+ password:
|
|
|
|
+ pool:
|
|
|
|
+ max-active: 8
|
|
|
|
+ max-idle: 8
|
|
|
|
+ max-wait: -1
|
|
|
|
+ min-idle: 0
|
|
|
|
+ port: 6379
|
|
|
|
+
|
|
|
|
+ thymeleaf:
|
|
|
|
+ cache: false
|
|
|
|
+ content-type: text/html
|
|
|
|
+ encoding: UTF-8
|
|
|
|
+ mode: LEGACYHTML5
|
|
|
|
+ prefix: classpath:/templates/
|
|
|
|
+ suffix: .html
|
|
|
|
+website:
|
|
|
|
+ domainName: 127.0.0.1
|
|
|
|
+wecaht:
|
|
|
|
+ appSecret: f84db4dc62377926624093b49ac3be1f
|
|
|
|
+ appId: wx60f06d61f21804be
|