diff options
author | Vitaly Takmazov | 2016-08-08 00:05:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-08-08 00:05:21 +0300 |
commit | 351a61da81baccae4392fc65bb09e5e19860eaa5 (patch) | |
tree | abf627aa95e02f80bc90c54a70660ab0a61587bc /juick-ws/src/main/java/com/juick/ws/components/PushComponent.java | |
parent | 589901b03688e073eb85b5b51a58cec3c8d5d5e9 (diff) |
juick-ws: async components
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws/components/PushComponent.java')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/components/PushComponent.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java b/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java index bf56fb4b..11e20ed4 100644 --- a/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java +++ b/juick-ws/src/main/java/com/juick/ws/components/PushComponent.java @@ -50,6 +50,7 @@ import org.springframework.beans.factory.InitializingBean; import org.springframework.core.env.Environment; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DriverManagerDataSource; +import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Component; import javax.inject.Inject; @@ -83,6 +84,7 @@ public class PushComponent implements InitializingBean, DisposableBean, Stream.S @Inject Environment env; + @Async @Override public void afterPropertiesSet() { logger.info("component initialized"); |