Context Path with Webflux

后端 未结 9 1176
借酒劲吻你
借酒劲吻你 2021-02-07 18:52

I\'ve been trying to find a way to set the context path for a webflux application. I know I can configure it using

server.servlet.context-path

9条回答
  •  别那么骄傲
    2021-02-07 19:29

    According to this

    There is servlet in the name of the property which should be a hint that won't work with webflux.

    With springboot v2.3, you can put this in your properties file

    spring.webflux.base-path=/your-path
    

    release-notes reference: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.3-Release-Notes#configurable-base-path-for-webflux-applications

提交回复
热议问题