摘要:
说明: 使用springboot的redistemplate接口执行事务 redisTemplate.multi(); //此处为业务逻辑 redisTemplate.exec(); 时,遇到错误:ERR EXEC without MULTI. 解决: 查阅官方文档发现,redistemplate不 阅读全文
摘要:
需求描述: 希望使用springboot的基础功能,但是不想通过web方式调用,而是在springboot启动以后自动执行一些代码。 方法: 可以实现如下两个接口中的任意一个:ApplicationRunner or CommandLineRunner。它们的run方法都会在springboot启动 阅读全文