增加demo-api示例
This commit is contained in:
3
demo/demo-service/src/main/resources/application.yml
Normal file
3
demo/demo-service/src/main/resources/application.yml
Normal file
@ -0,0 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
6
demo/demo-service/src/main/resources/banner.txt
Normal file
6
demo/demo-service/src/main/resources/banner.txt
Normal file
@ -0,0 +1,6 @@
|
||||
██╗ ██╗ ██╗██████╗ ███████╗ ██████╗ ███████╗████████╗
|
||||
╚██╗██╔╝ ██║██╔══██╗██╔════╝██╔═══██╗██╔════╝╚══██╔══╝
|
||||
╚███╔╝ ██║██████╔╝███████╗██║ ██║█████╗ ██║
|
||||
██╔██╗ ██ ██║██╔══██╗╚════██║██║ ██║██╔══╝ ██║
|
||||
██╔╝ ██╗╚█████╔╝██║ ██║███████║╚██████╔╝██║ ██║
|
||||
╚═╝ ╚═╝ ╚════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝
|
||||
50
demo/demo-service/src/main/resources/bootstrap.yml
Normal file
50
demo/demo-service/src/main/resources/bootstrap.yml
Normal 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 直到未被占用为止
|
||||
Reference in New Issue
Block a user