From b3ad5547119d7d7ca2c7359eee8b7b42a2039728 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 11 Sep 2018 15:28:52 +0300 Subject: qualify www beans to omit warning --- .../src/main/java/com/juick/server/configuration/SecurityConfig.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'juick-server') 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); -- cgit v1.2.3