diff --git a/quartz-manager-parent/quartz-manager-starter-security/src/main/java/it/fabioformosa/quartzmanager/security/WebSecurityConfigJWT.java b/quartz-manager-parent/quartz-manager-starter-security/src/main/java/it/fabioformosa/quartzmanager/security/WebSecurityConfigJWT.java index 80a5631..296e4fd 100644 --- a/quartz-manager-parent/quartz-manager-starter-security/src/main/java/it/fabioformosa/quartzmanager/security/WebSecurityConfigJWT.java +++ b/quartz-manager-parent/quartz-manager-starter-security/src/main/java/it/fabioformosa/quartzmanager/security/WebSecurityConfigJWT.java @@ -4,6 +4,7 @@ import org.apache.commons.lang3.BooleanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; @@ -44,6 +45,7 @@ import it.fabioformosa.quartzmanager.security.helpers.impl.QuartzManagerHttpSecu /** * @author Fabio.Formosa */ +@ComponentScan(basePackages = {"it.fabioformosa.quartzmanager.security"}) @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) diff --git a/quartz-manager-parent/quartz-manager-starter-security/src/main/resources/META-INF/spring.factories b/quartz-manager-parent/quartz-manager-starter-security/src/main/resources/META-INF/spring.factories index b1e78c3..78062f5 100644 --- a/quartz-manager-parent/quartz-manager-starter-security/src/main/resources/META-INF/spring.factories +++ b/quartz-manager-parent/quartz-manager-starter-security/src/main/resources/META-INF/spring.factories @@ -1,4 +1,2 @@ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -it.fabioformosa.quartzmanager.security.WebSecurityConfigJWT,\ -it.fabioformosa.quartzmanager.security.properties.JwtSecurityProperties,\ -it.fabioformosa.quartzmanager.security.properties.InMemoryAccountProperties +it.fabioformosa.quartzmanager.security.WebSecurityConfigJWT