增加demo-api示例

This commit is contained in:
yaoyn
2025-04-28 17:25:35 +08:00
parent de240cba3e
commit db33dbaa8b
31 changed files with 164 additions and 2 deletions

View File

@ -0,0 +1,50 @@
server:
port: 9001
spring:
application:
name: demo-service
main:
allow-bean-definition-overriding: true
# autoconfigure:
# #自动化配置 例外处理
# exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
cloud:
nacos: #nacos监控
discovery:
server-addr: 10.0.252.1:8848
namespace: ITC-MS
group: DNE
username: nacos
password: ABcd1234@
config:
server-addr: 10.0.252.1:8848 # nacos 配置中心地址
namespace: ITC-MS
group: DNE
username: nacos
password: ABcd1234@
file-extension: yml # 默认配置 ${spring.application.name}-${spring.profiles.active}.${file-extension}
extension-configs:
- data-id: global-config.yml
refresh: true
group: DNE
- data-id: sa-token-client-config.yml
refresh: true
group: DNE
- data-id: redis-config.yml
refresh: true
group: DNE
- data-id: datasource-config.yml
refresh: true
group: DNE
- data-id: camunda-config.yml
refresh: true
group: DNE
- data-id: demo-config.yml
refresh: true
group: DNE
sentinel:
transport:
dashboard: localhost:8080 #sentinel dashboard 地址
port: 8719 #默认端口, 如果 被占用,会一直+1 直到未被占用为止