Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit f387b83

Browse files
author
Mario
committed
1241 - improved comment in method
1 parent 47832ad commit f387b83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

extensions/spring/boot/stormpath-spring-security-webmvc-spring-boot-starter/src/main/java/com/stormpath/spring/boot/autoconfigure/StormpathWebSecurityAutoConfiguration.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ public AuthenticationEntryPoint stormpathAuthenticationEntryPoint() {
150150
/**
151151
* @since 1.3.0
152152
*/
153-
@Bean //we cannot add @ConditionalOnMissingBean, it will avoid this bean to be created when the BOM is used to create an application. Fix for: https://github.com/stormpath/stormpath-sdk-java/issues/1241
153+
/*
154+
* We cannot add @ConditionalOnMissingBean here.
155+
* When using the spring boot starter parent, it has a CorsConfigurationSource that would prevent this bean from being used.
156+
* Fix for: https://github.com/stormpath/stormpath-sdk-java/issues/1241
157+
*/
158+
@Bean
154159
@Override
155160
public CorsConfigurationSource corsConfigurationSource() {
156161
return super.corsConfigurationSource();

0 commit comments

Comments
 (0)