Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // spring boot application entry point
- @SpringBootApplication
- @EnableJpaRepositories("cookle.core.dao")
- @ComponentScan({"cookle.essync.job", "cookle.crawler.model.domain"})
- @EntityScan({"cookle.crawler.model.domain","cookle.core.model.domain"})
- public class Mysql2ES implements CommandLineRunner {
- @Autowired
- private MysqlESSync mysqlESSync;
- @Override
- public void run(String... strings) throws Exception {
- mysqlESSync.run();
- }
- public static void main(String[] args) throws Exception {
- SpringApplication.run(Mysql2ES.class).close();
- }
- }
Add Comment
Please, Sign In to add comment