spring-boot, can i configure one externally accessible and one internal endpoint on the same port?

时间:2017-04-24 17:15:05

标签: java spring tomcat spring-boot

I have a service running in spring-boot with embedded tomcat.

Two different url endpoints on the same port, like

@RequestMapping("/endpointExternal")

@RequestMapping("/endpointInternal")

Only the first should be reachable on the external interface, while the other should only be reachable from localhost.

Is that possible to configure somehow?

0 个答案:

没有答案