aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/database/MySqlUpdater.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/database/MySqlUpdater.java')
-rw-r--r--juick-server/src/main/java/com/juick/database/MySqlUpdater.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/database/MySqlUpdater.java b/juick-server/src/main/java/com/juick/database/MySqlUpdater.java
index c087ee29..2027d9f1 100644
--- a/juick-server/src/main/java/com/juick/database/MySqlUpdater.java
+++ b/juick-server/src/main/java/com/juick/database/MySqlUpdater.java
@@ -36,9 +36,9 @@ public class MySqlUpdater {
public MySqlUpdater(JdbcTemplate jdbcTemplate, PlatformTransactionManager transactionManager, String updateSqlResource) {
- Assert.notNull(jdbcTemplate);
- Assert.notNull(transactionManager);
- Assert.notNull(updateSqlResource);
+ Assert.notNull(jdbcTemplate, "JdbcTemplate must be initialized");
+ Assert.notNull(transactionManager, "PlatformTransactionManager must be initialized");
+ Assert.notNull(updateSqlResource, "sqlResource must be initialized");
this.jdbcTemplate = jdbcTemplate;
this.transactionTemplate = new TransactionTemplate(transactionManager);