微服务版后端初始化
This commit is contained in:
60
xjrsoft-auth/src/main/resources/bootstrap.yml
Normal file
60
xjrsoft-auth/src/main/resources/bootstrap.yml
Normal file
@ -0,0 +1,60 @@
|
||||
server:
|
||||
port: 1024
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: auth-service
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://10.0.252.7:3306/fcd2-msat-init?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||
username: learun4dev
|
||||
password: ABcd1234@
|
||||
|
||||
cloud:
|
||||
nacos: #nacos监控
|
||||
discovery:
|
||||
server-addr: 10.0.252.1:8848
|
||||
namespace: ITC
|
||||
group: DNE
|
||||
username: nacos
|
||||
password: ABcd1234@
|
||||
config:
|
||||
server-addr: 10.0.252.1:8848 # nacos 配置中心地址
|
||||
namespace: ITC
|
||||
group: DNE
|
||||
username: nacos
|
||||
password: ABcd1234@
|
||||
file-extension: yml # 指定格式 xjrsoft-auth-service-dev.yml
|
||||
extension-configs:
|
||||
- data-id: global-config.yml
|
||||
refresh: true
|
||||
group: DNE
|
||||
- data-id: redis-config.yml
|
||||
refresh: true
|
||||
group: DNE
|
||||
- data-id: sa-token-client-config.yml
|
||||
refresh: true
|
||||
group: DNE
|
||||
- data-id: datasource-config.yml
|
||||
refresh: true
|
||||
group: DNE
|
||||
sentinel:
|
||||
transport:
|
||||
dashboard: localhost:8080 #sentinel dashboard 地址
|
||||
port: 8719 #默认端口, 如果 被占用,会一直+1 直到未被占用为止
|
||||
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
tags-sorter: alpha
|
||||
operations-sorter: alpha
|
||||
show-extensions: true
|
||||
api-docs:
|
||||
path: '/sso/v3/api-docs'
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/sso/**'
|
||||
packages-to-scan: com.xjrsoft.auth
|
||||
default-flat-param-object: false
|
||||
Reference in New Issue
Block a user