Spring Security 5 自定义403页面
非常简单,就是在
WebSecurityConfigurerAdapter
里面重写
void configure(HttpSecurity http)
时,配置即可:
然后在static下创建403.html
本文来自博客园,作者:咸瑜,转载请注明原文链接:https://www.cnblogs.com/bi-hu/p/16365381.html