|
@@ -63,6 +63,15 @@ public class AdminServiceApplication {
|
|
|
// .inMemoryAuthentication()
|
|
|
// .withUser("admin").password("123456").roles("USER");
|
|
|
// }
|
|
|
+ @Profile("local")
|
|
|
+ @Configuration
|
|
|
+ public static class SecurityPermitAllConfigLocal extends WebSecurityConfigurerAdapter {
|
|
|
+ @Override
|
|
|
+ protected void configure(HttpSecurity http) throws Exception {
|
|
|
+ http.authorizeRequests().anyRequest().permitAll()
|
|
|
+ .and().csrf().disable();
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
@Profile("dev")
|
|
|
@Configuration
|