| | |
| | | protected void configure(HttpSecurity http) { |
| | | http.headers().frameOptions().disable(); |
| | | http.csrf().disable(); |
| | | http.formLogin().loginPage("/oauth/login").loginProcessingUrl("/oauth/form"); |
| | | http.formLogin() |
| | | //自定义认证成功跳转 |
| | | .successHandler(new CustomAuthenticationSuccessHandler("http://192.168.1.50:1888/api/oauth/authorize")) |
| | | .loginPage("http://192.168.1.50:1888/#/login") |
| | | // .loginPage("/oauth/login") |
| | | .loginProcessingUrl("/oauth/form"); |
| | | // 认证失败自定义登录页跳转 |
| | | http.exceptionHandling() |
| | | .authenticationEntryPoint(new CustomAuthenticationEntryPoint("http://192.168.1.50:1888/#/login")); |
| | | |
| | | } |
| | | |
| | | @Override |