| | |
| | | |
| | | @Override |
| | | protected void configure(HttpSecurity http) throws Exception { |
| | | System.out.println(444444); |
| | | http.httpBasic().and(). |
| | | cors().and().csrf().disable() |
| | | .exceptionHandling().authenticationEntryPoint(authenticationEntryPoint()) |
| | |
| | | .authorizeRequests() |
| | | .antMatchers(HttpMethod.OPTIONS, "/**").permitAll() |
| | | .antMatchers("/login").permitAll() |
| | | .antMatchers("/html").permitAll() |
| | | .antMatchers("/swagger**/**").permitAll() |
| | | .antMatchers("/webjars/**").permitAll() |
| | | .antMatchers("/v2/**").permitAll() |
| | |
| | | } |
| | | |
| | | public TokenConfigurer securityConfiguereAdapter() { |
| | | System.out.println(33333333); |
| | | return new TokenConfigurer(); |
| | | } |
| | | } |