摘要: @Bean("taskModuleExecutor") Executor getCrawler1(){ ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor(); threadPoolTaskExecut 阅读全文
posted @ 2020-05-07 18:40 meadowhuhu 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 查询慢,通过增加缓存进行https://my.oschina.net/sdlvzg/blog/1608871 @CacheConfig:主要用于配置该类中会用到的一些共用的缓存配置。 @Cacheable:主要方法返回值将被加入缓存。同时在查询时,会先从缓存中获取,若不存在才再发起对数据库的访问。 阅读全文
posted @ 2020-05-07 18:30 meadowhuhu 阅读(123) 评论(0) 推荐(0) 编辑