xiaoyong931011
2022-07-07 bc43681f185af1edf833cf6c94833cb1cdd44a8e
src/main/java/com/xcong/farmer/cms/configurations/security/WebSecurityConfig.java
@@ -36,7 +36,6 @@
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        System.out.println(4444414);
        http.httpBasic().and().
                cors().and().csrf().disable()
                .exceptionHandling().authenticationEntryPoint(authenticationEntryPoint())
@@ -44,6 +43,7 @@
                .authorizeRequests()
                .antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
                .antMatchers("/login").permitAll()
                .antMatchers("/cms/**").permitAll()
                .antMatchers("/html").permitAll()
                .antMatchers("/swagger**/**").permitAll()
                .antMatchers("/webjars/**").permitAll()
@@ -53,6 +53,8 @@
                .antMatchers("/api/common/doUpload").permitAll()
                .antMatchers("/api/common/uploadFile").permitAll()
                .antMatchers("/api/messageBoard/addMessage").permitAll()
                .antMatchers("/api/article/webArticleInPage").permitAll()
                .antMatchers("/api/column/webColumnInList").permitAll()
                .antMatchers("/image/**").permitAll()
                .anyRequest().authenticated()
                .and().apply(securityConfiguereAdapter());
@@ -79,7 +81,6 @@
    }
    public TokenConfigurer securityConfiguereAdapter() {
        System.out.println(33333333);
        return new TokenConfigurer();
    }
}