配置成功跳转页面:
http.formLogin()
.defaultSuccessUrl("/index.html")
问题:defaultSuccessUrl中配置的url无法被访问到。
原因:defaultSuccessUrl被springboot作为url拦截请求,无法找到解析index.html的controller。
解决:修改defaultSuccessUrl("/index.html")为defaultSuccessUrl("/index.do"),并添加处理index.do请求的controller。