Spring Security入门(3-3)Spring Security 手工配置并注入 authenticationProvider 和 异常信息传递 特别注意的是 这样就能保证抛出UsernameNotFoundException时,前台显示出错信息: 另外,ps: