1
@Controller
@SessionAttributes(types = AuthorizationRequest.class)
public class WhiteLableController {

    @RequestMapping("/oauth/confirm_access")
    public String getAccessConfirmation() throws Exception {
        return "access_confirmation";
    }
}

当我在 Spring Boot 中将 access_confirmation.html 保存在“public”或“static”文件夹中时,它不起作用。有人可以帮我吗?

404错误页面:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Aug 18 14:11:19 CEST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
4

0 回答 0