From e0203c90c8341b17b0d009514de067da770fc617 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 11 Jun 2018 21:32:25 +0900 Subject: [PATCH] ing --- pom.xml | 7 +++++++ .../noauthprobe/service/CentralNoAuthProbeService.java | 2 ++ .../java/com/loafle/overflow/central/spring/AppConfig.java | 1 + 3 files changed, 10 insertions(+) diff --git a/pom.xml b/pom.xml index 04bed76..58d9b98 100644 --- a/pom.xml +++ b/pom.xml @@ -118,6 +118,13 @@ ${spring.version} + + + org.springframework + spring-aspects + ${spring.version} + + diff --git a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java index 06cbbc0..875d61e 100644 --- a/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java +++ b/src/main/java/com/loafle/overflow/central/module/noauthprobe/service/CentralNoAuthProbeService.java @@ -27,6 +27,7 @@ import com.loafle.overflow.service.central.probe.ProbeService; import org.codehaus.jackson.map.ObjectMapper; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.stereotype.Service; @@ -62,6 +63,7 @@ public class CentralNoAuthProbeService implements NoAuthProbeService { private ObjectMapper objectMapper; @Autowired + @Qualifier("InfraService") private CentralInfraService infraService; @Autowired diff --git a/src/main/java/com/loafle/overflow/central/spring/AppConfig.java b/src/main/java/com/loafle/overflow/central/spring/AppConfig.java index 032b64a..6e943a5 100644 --- a/src/main/java/com/loafle/overflow/central/spring/AppConfig.java +++ b/src/main/java/com/loafle/overflow/central/spring/AppConfig.java @@ -11,6 +11,7 @@ import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; @Configuration @ComponentScan(basePackages = { "com.loafle.overflow" }, excludeFilters = @ComponentScan.Filter({ Configuration.class })) +@EnableAspectJAutoProxy(proxyTargetClass = true) @Import({ JdbcConfiguration.class, MailConfiguration.class, RedisConfiguration.class, CacheConfiguration.class }) @PropertySource({ "classpath:database.properties", "classpath:mail.properties", "classpath:redis.properties", "classpath:cache.properties" })