Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: convert properties config file type to yml type #3821

Open
wants to merge 9 commits into
base: 2023.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
spring:
application:
name: service-consumer

cloud:
# use feign client in GraalVM environment need to set below config
refresh:
enabled: true
nacos:
discovery:
username: 'nacos'
password: 'nacos'
server-addr: 127.0.0.1:8848
fail-fast: true

sentinel:
transport:
dashboard: localhost:8080
eager: true
datasource:
ds1:
file:
file: classpath:flowrule.json
data-type: json
rule-type: flow
ds2:
file:
file: classpath:degraderule.json
data-type: json
rule-type: degrade

server:
port: 18083

management:
endpoints:
web:
exposure:
include: *


feign:
sentinel:
enabled: true

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
spring:
application:
name: service-consumer-sclb

cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
username: nacos
password: nacos
loadbalancer:
ribbon:
enabled: false
configurations: zone-preference
zone: hangzhou

sentinel:
transport:
dashboard: localhost:8080
eager: true
datasource:
ds1:
file:
file: classpath:flowrule.json
data-type: json
rule-type: flow
ds2:
file:
file: classpath:degraderule.json
data-type: json
rule-type: degrade

feign:
sentinel:
enabled: true

server:
port: 18083

management:
endpoints:
web:
exposure:
include: '*'
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import java.util.Map;


import com.alibaba.cloud.nacos.NacosDiscoveryProperties;
import jakarta.annotation.Resource;

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
spring:
application:
name: service-provider

cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
enabled: true
# instance-enabled: true
# ip-type: IPv4 # only register IPv4 instance
# ip-type: IPv6 # only register IPv6 instance
username: nacos
password: nacos

server:
port: 0

management:
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: always

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
spring:
application:
name: service-consumer-reactive

cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
username: nacos
password: nacos
loadbalancer:
ribbon:
enabled: false

server:
port: 18083

management:
endpoints:
web:
exposure:
include: '*'

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
spring:
application:
name: service-gateway

cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
username: nacos
password: nacos

gateway:
routes:
- id: nacos-route
uri: lb://service-gateway-provider
predicates:
- Path=/nacos/**
filters:
- StripPrefix=1

server:
port: 18085

management:
endpoints:
web:
exposure:
include: '*'

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
spring:
application:
name: service-gateway-provider

cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
username: nacos
password: nacos

server:
port: 18086

management:
endpoints:
web:
exposure:
include: '*'
Loading