|
@@ -1,23 +1,29 @@
|
|
|
dubbo:
|
|
dubbo:
|
|
|
application:
|
|
application:
|
|
|
- name: account-service
|
|
|
|
|
|
|
+ name: user-service
|
|
|
qos-enable: true
|
|
qos-enable: true
|
|
|
- qos-port: 16105
|
|
|
|
|
|
|
+ qos-port: 16104
|
|
|
qos-accept-foreign-ip: false
|
|
qos-accept-foreign-ip: false
|
|
|
scan:
|
|
scan:
|
|
|
- base-packages: cn.reghao.tnb.content.app.vod.rpc,cn.reghao.tnb.content.app.mall.rpc
|
|
|
|
|
|
|
+ base-packages: cn.reghao.tnb.user.app.rpc
|
|
|
protocol:
|
|
protocol:
|
|
|
name: dubbo
|
|
name: dubbo
|
|
|
- port: 6105
|
|
|
|
|
|
|
+ port: 6104
|
|
|
server:
|
|
server:
|
|
|
- port: 6005
|
|
|
|
|
|
|
+ port: 6004
|
|
|
tomcat:
|
|
tomcat:
|
|
|
max-http-form-post-size: 4MB
|
|
max-http-form-post-size: 4MB
|
|
|
spring:
|
|
spring:
|
|
|
|
|
+ threads:
|
|
|
|
|
+ virtual:
|
|
|
|
|
+ enabled: true
|
|
|
application:
|
|
application:
|
|
|
- name: content-service
|
|
|
|
|
|
|
+ name: user-service
|
|
|
profiles:
|
|
profiles:
|
|
|
active: @profile.active@
|
|
active: @profile.active@
|
|
|
|
|
+ mvc:
|
|
|
|
|
+ pathmatch:
|
|
|
|
|
+ matching-strategy: ant_path_matcher
|
|
|
datasource:
|
|
datasource:
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
@@ -30,29 +36,17 @@ spring:
|
|
|
max-lifetime: 1800000
|
|
max-lifetime: 1800000
|
|
|
connection-timeout: 30000
|
|
connection-timeout: 30000
|
|
|
connection-test-query: SELECT 1
|
|
connection-test-query: SELECT 1
|
|
|
- cloud:
|
|
|
|
|
- zookeeper:
|
|
|
|
|
- connect-string: 127.0.0.1:2181
|
|
|
|
|
- config:
|
|
|
|
|
- enabled: true
|
|
|
|
|
- root: config
|
|
|
|
|
- default-context: ${spring.application.name}
|
|
|
|
|
- profile-separator: ':'
|
|
|
|
|
- watcher:
|
|
|
|
|
- enabled: true
|
|
|
|
|
mybatis:
|
|
mybatis:
|
|
|
configuration:
|
|
configuration:
|
|
|
map-underscore-to-camel-case: true
|
|
map-underscore-to-camel-case: true
|
|
|
- mapper-locations: classpath*:mapper/**.xml
|
|
|
|
|
- type-aliases-package: cn.reghao.tnb.content.app.model.po
|
|
|
|
|
|
|
+ mapper-locations: classpath*:mapper/**/**.xml
|
|
|
|
|
+ type-aliases-package: cn.reghao.tnb.user.app.model.po
|
|
|
management:
|
|
management:
|
|
|
endpoints:
|
|
endpoints:
|
|
|
web:
|
|
web:
|
|
|
- base-path: /api/content/actuator
|
|
|
|
|
|
|
+# base-path: /api/user/actuator
|
|
|
exposure:
|
|
exposure:
|
|
|
include: "*"
|
|
include: "*"
|
|
|
- health:
|
|
|
|
|
- show-details: always
|
|
|
|
|
metrics:
|
|
metrics:
|
|
|
tags:
|
|
tags:
|
|
|
application: ${spring.application.name}
|
|
application: ${spring.application.name}
|