瀏覽代碼

统计代码重构

esb 8 年之前
父節點
當前提交
b0dc9fb4cb

+ 2 - 3
patient-co-statistics/src/main/java/com/yihu/wlyy/statistics/config/WebSecurityConfig.java

@ -27,14 +27,13 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                .formLogin().defaultSuccessUrl("/swagger-ui.html").failureUrl("/login") //登录成功之后的跳转
                .permitAll()
                .and()
                .logout()
                .logout().logoutSuccessUrl("/login")
                .permitAll();
    }
    @Autowired
    public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
            auth
                .inMemoryAuthentication()
            auth.inMemoryAuthentication()
                .withUser(username).password(password).roles("USER");
    }