Spring 授权服务器不使用上下文路径
Spring Authorization Server not working with context-path
我有一个使用 Spring 1.5.7 构建的授权服务器,它工作正常。现在,当我尝试移动到 Spring 2 时,这是可行的。我也遵循了 https://spring.io/guides/tutorials/spring-boot-oauth2/ with no luck. Problem is that when I use it without context-path it works fine like http://localhost:8080/oauth/token but when I use a context path it is not able to authenticate like http://localhost:8080/auth/oauth/token 的所有步骤。这在 Spring 引导的旧版本中工作,即 1.5.7,但我试过的 Spring 引导 2.1.8 不起作用。请帮忙
知道问题了。使用 Spring 2 server.context-path 已弃用,server.servlet.context-path 是前进的方向。一旦我使用 server.servlet.context-path 一切正常
我有一个使用 Spring 1.5.7 构建的授权服务器,它工作正常。现在,当我尝试移动到 Spring 2 时,这是可行的。我也遵循了 https://spring.io/guides/tutorials/spring-boot-oauth2/ with no luck. Problem is that when I use it without context-path it works fine like http://localhost:8080/oauth/token but when I use a context path it is not able to authenticate like http://localhost:8080/auth/oauth/token 的所有步骤。这在 Spring 引导的旧版本中工作,即 1.5.7,但我试过的 Spring 引导 2.1.8 不起作用。请帮忙
知道问题了。使用 Spring 2 server.context-path 已弃用,server.servlet.context-path 是前进的方向。一旦我使用 server.servlet.context-path 一切正常