Guest User

Untitled

a guest
Jun 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // spring boot application entry point
  2. @SpringBootApplication
  3. @EnableJpaRepositories("cookle.core.dao")
  4. @ComponentScan({"cookle.essync.job", "cookle.crawler.model.domain"})
  5. @EntityScan({"cookle.crawler.model.domain","cookle.core.model.domain"})
  6. public class Mysql2ES implements CommandLineRunner {
  7. @Autowired
  8. private MysqlESSync mysqlESSync;
  9.  
  10. @Override
  11. public void run(String... strings) throws Exception {
  12. mysqlESSync.run();
  13. }
  14.  
  15. public static void main(String[] args) throws Exception {
  16. SpringApplication.run(Mysql2ES.class).close();
  17. }
  18.  
  19. }
Add Comment
Please, Sign In to add comment