aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/configuration/DataConfiguration.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/configuration/DataConfiguration.java')
-rw-r--r--juick-server/src/main/java/com/juick/configuration/DataConfiguration.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/configuration/DataConfiguration.java b/juick-server/src/main/java/com/juick/configuration/DataConfiguration.java
index 535755c2..d9ef7d38 100644
--- a/juick-server/src/main/java/com/juick/configuration/DataConfiguration.java
+++ b/juick-server/src/main/java/com/juick/configuration/DataConfiguration.java
@@ -1,5 +1,6 @@
package com.juick.configuration;
+import com.juick.database.MySqlUpdater;
import com.juick.service.search.SearchService;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.context.annotation.*;
@@ -58,6 +59,14 @@ public class DataConfiguration implements TransactionManagementConfigurer {
}
@Bean
+ public MySqlUpdater updater() {
+ return new MySqlUpdater(
+ jdbcTemplate(),
+ transactionManager(),
+ "update.sql");
+ }
+
+ @Bean
public SearchService emptySearchService() {
return new SearchService() {
@Override