我有一个使用OAuth2的Spring Boot应用程序。到目前为止,一切都工作正常,但是当我添加一个像这样的后备Rest Controller时
min(distance)
回退效果很好,但“ / oauth / token”仅返回405个答案
如果FallBack中的值仅为$ python similarity.py
are <-> you => not static // weight: 0.16
you <-> are => not static // weight: 0.16
are <-> you => not static // weight: 0.16
you <-> are => not static // weight: 0.16
why <-> why => static // weight: 0.20
The similarity value is = 0.84
,则OAuth2可以正常工作,但有些Fallbacks可以工作:
@GetMapping("**")
@ResponseBody
public ResponseEntity<?> getFallback(HttpServletRequest request, HttpServletResponse response) {
...
工作正常"*"
返回404 安全配置
/foo