From 3f5ed8dcc14fb6009e8f396e9d7633e72fd37cb5 Mon Sep 17 00:00:00 2001 From: Loredana Date: Sat, 6 Apr 2019 13:47:03 +0300 Subject: [PATCH] fix bean config --- .../oauth2server/config/WebSecurityConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-security/src/main/java/com/baeldung/springbootsecurity/oauth2server/config/WebSecurityConfiguration.java b/spring-boot-security/src/main/java/com/baeldung/springbootsecurity/oauth2server/config/WebSecurityConfiguration.java index f2540c01b8..3a8c073870 100644 --- a/spring-boot-security/src/main/java/com/baeldung/springbootsecurity/oauth2server/config/WebSecurityConfiguration.java +++ b/spring-boot-security/src/main/java/com/baeldung/springbootsecurity/oauth2server/config/WebSecurityConfiguration.java @@ -2,10 +2,12 @@ package com.baeldung.springbootsecurity.oauth2server.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; @Configuration +@Profile("!authz") public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { @Bean