aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-30 15:33:57 +0700
committerGravatar Alexander Alexeev2016-11-30 15:33:57 +0700
commit2a7dfd5e3c5701ec0dbe66079f0e086482d7cdd4 (patch)
tree4ad44b36e8013362a1c9bc8f1520d7e45c88f57d /juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java
parent6d1e79d97573218b51053d41af4f9328a1e6921f (diff)
beans dependencies
Diffstat (limited to 'juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java')
-rw-r--r--juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java b/juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java
index 1cf5c1a1..5f04ea4e 100644
--- a/juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java
+++ b/juick-server/src/main/java/com/juick/configuration/SearchConfiguration.java
@@ -5,6 +5,7 @@ import com.juick.service.search.SphinxSearchServiceImpl;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
@@ -34,6 +35,7 @@ public class SearchConfiguration {
}
@Bean
+ @DependsOn("searchDataSource")
public SearchService searchService() {
return new SphinxSearchServiceImpl(searchDataSource());
}