随笔分类 - Spring boot
摘要:1.子线程抛出异常和主线程事务回滚 2.关于异步@Async + 事务@Transactional的结合使用问题分析 3.@Async和@Transactional失效原因
阅读全文
摘要:// SpringBoot读取Linux服务器某路径下文件 public String messageToRouted() { File file = null; try { file = ResourceUtils.getFile("/home/admin/logs/test/routed.txt"); ...
阅读全文
摘要:https://segmentfault.com/a/1190000013341344 https://blog.csdn.net/u010235716/article/details/90171802
阅读全文
摘要:https://blog.csdn.net/wqc19920906/article/details/80009929 https://blog.csdn.net/HL_smile90/article/details/76566286
阅读全文
摘要:// *号 必须要加,否则无法模糊查询 String prefix = "ofc-pincode-"+ pincode + "-*"; // 获取所有的key Set keys = redisTemplate.keys(prefix); // 批量获取数据 List myObjectListRedis =...
阅读全文