升级Spring Cloud Hoxton & Alibaba,认证授权改用Oauth2。
This commit is contained in:
14
config/search/mall-search-dev.yaml
Normal file
14
config/search/mall-search-dev.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: root
|
||||
elasticsearch:
|
||||
rest:
|
||||
uris: http://localhost:9200
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
com.macro.mall: debug
|
||||
logstash:
|
||||
host: localhost
|
||||
20
config/search/mall-search-prod.yaml
Normal file
20
config/search/mall-search-prod.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
username: reader
|
||||
password: 123456
|
||||
elasticsearch:
|
||||
rest:
|
||||
uris: http://es:9200
|
||||
management:
|
||||
health:
|
||||
elasticsearch:
|
||||
response-timeout: 1000ms #加大健康检查超时时间
|
||||
logging:
|
||||
file:
|
||||
path: /var/logs
|
||||
level:
|
||||
root: info
|
||||
com.macro.mall: info
|
||||
logstash:
|
||||
host: logstash
|
||||
Reference in New Issue
Block a user