Spring Security 5 自定义403页面

非常简单,就是在
WebSecurityConfigurerAdapter

里面重写

void configure(HttpSecurity http)

时,配置即可:

 

 

 

 

然后在static下创建403.html

 

posted @ 2022-06-11 10:24  咸瑜  阅读(35)  评论(0编辑  收藏  举报