ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features
Apache License 2.0
1.91k
stars
813
forks
source link
servlet.urlPattern is not effect when bind to additionalPorts #3917
# spring boot configurations
server:
port: 9092 # should be same with servicecomb.rest.address to use web container
additionalPorts: 8082
servicecomb:
rest:
servlet:
urlPattern: /rest/*
address: 0.0.0.0:8082 # use the additionalPorts
provider:
rest:
scanRestController: false
we use java-chassis-spring-boot-starter-servlet
and we config like this in the yml file:
but the urlPattern is not effect, we can just use this url to access the service. http://localhost:8082/sayHello?name=XXX
but we expect this http://localhost:8082/rest/sayHello?name=XXX