diff options
author | 2018-09-11 15:28:52 +0300 | |
---|---|---|
committer | 2018-09-11 15:28:52 +0300 | |
commit | b3ad5547119d7d7ca2c7359eee8b7b42a2039728 (patch) | |
tree | 6d79e0624de4247df6cf4b87a6f6b16d1f0c9424 /juick-server | |
parent | 85b34c2095fb606c1511b8c434070dd3090e2a7f (diff) |
qualify www beans to omit warning
Diffstat (limited to 'juick-server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/configuration/SecurityConfig.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/configuration/SecurityConfig.java b/juick-server/src/main/java/com/juick/server/configuration/SecurityConfig.java index 8b42a7a3..10f5a40b 100644 --- a/juick-server/src/main/java/com/juick/server/configuration/SecurityConfig.java +++ b/juick-server/src/main/java/com/juick/server/configuration/SecurityConfig.java @@ -22,6 +22,7 @@ import com.juick.service.security.HashParamAuthenticationFilter; import com.juick.service.security.JuickUserDetailsService; import com.juick.service.security.deprecated.RequestParamHashRememberMeServices; import com.juick.service.security.entities.JuickUser; +import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -152,10 +153,12 @@ public class SecurityConfig { @Inject private UserDetailsService userDetailsService; @Bean + @Qualifier("www") public HashParamAuthenticationFilter wwwAuthenticationFilter() { return new HashParamAuthenticationFilter(userService, hashCookieServices()); } @Bean + @Qualifier("www") public RememberMeServices hashCookieServices() { TokenBasedRememberMeServices services = new TokenBasedRememberMeServices( rememberMeKey, userDetailsService); |