Helius
2022-07-03 f32a53f5534aa9f9a8591e8b197bb1f8acd9e6c0
src/main/java/com/xcong/farmer/cms/configurations/security/WebSecurityConfig.java
@@ -33,9 +33,9 @@
    @Resource
    private UserDetailsService userDetailsService;
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        System.out.println(4444414);
        http.httpBasic().and().
                cors().and().csrf().disable()
                .exceptionHandling().authenticationEntryPoint(authenticationEntryPoint())
@@ -43,6 +43,7 @@
                .authorizeRequests()
                .antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
                .antMatchers("/login").permitAll()
                .antMatchers("/cms/**").permitAll()
                .antMatchers("/html").permitAll()
                .antMatchers("/swagger**/**").permitAll()
                .antMatchers("/webjars/**").permitAll()
@@ -78,7 +79,6 @@
    }
    public TokenConfigurer securityConfiguereAdapter() {
        System.out.println(33333333);
        return new TokenConfigurer();
    }
}