Spring Boot 2.0.0.M4 OAuth2 token endpoint throws org.springframework.web.HttpRequestMethodNotSupportedException

不羁的心 提交于 2019-12-06 13:58:34

I found the reason of the issue - according to the following documentation https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/ with Spring Boot 2* the following property should be used in order to define context path of the application:

server.servlet.context-path= /api

Please note that Spring Boot 1.5.* property

server.contextPath: /api

is not more taken into account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!