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