摘要: 需求:启动项目把某些高频搜索的数据,放入到缓存中; 现象:利用@PostConstruct 项目启动加载,但是并没有做到分页,而是降所有数据放入的redis中,出现问题 @PostConstruct 注解方法 mybatis-plus分页插件 PageHelper失效 @PostConstruct 阅读全文
posted @ 2024-05-29 14:27 yingdong2019 阅读(72) 评论(0) 推荐(0)
摘要: 问题:在开发过程中,有时候本地创建的文件可以进行操作,放到linux服务器上出现文件不能操作的错误。 要进行文件授权 /** * 文件授权 * @param path * @method addPermissions * @author zhangyingdong * @return void * 阅读全文
posted @ 2024-03-04 11:20 yingdong2019 阅读(15) 评论(0) 推荐(0)
摘要: xxl-job 执行过程中报时间不同步错误 场景:将不同机器的执行器注册到调度器时由于不同的机器的系统时间存在误差导致任务无法执行! 报错信息如下: msg:com.xxl.rpc.util.XxlRpcException: The timestamp difference between admin and executor exceeds 阅读全文
posted @ 2023-09-18 13:42 yingdong2019 阅读(924) 评论(0) 推荐(0)