摘要: 当我们需要在 springboot 启动时做的第一件事,可以通过添加事件监听实现,具体如下: 添加事件 import org.springframework.boot.context.event.ApplicationStartingEvent; import org.springframework 阅读全文
posted @ 2023-08-20 16:49 这个杀手冷死了 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 环境说明 MacOS Apple M1 | Jdk17 | Maven 3.8.5 | SpringBoot 2.6.9 | neo4j 5.10.0 注:neo4j 内嵌最大的坑就是版本兼容性,所以引入前一定检查 neo4j 与 springboot 版本兼容性,其次 neo4j 各版本间配置使用 阅读全文
posted @ 2023-08-20 16:42 这个杀手冷死了 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 版本号 MacOS Apple M1 | Jdk17 | Maven 3.8.5 | SpringBoot 2.6.9 | 内嵌式 Sqlite 3.42.0.0 Pageable 使用方式 findAll() import org.springframework.data.domain.Page; 阅读全文
posted @ 2023-08-20 16:11 这个杀手冷死了 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 版本号 MacOS Apple M1 | Jdk17 | Maven 3.8.5 | SpringBoot 2.6.9 | Sqlite 3.42.0.0 pom.xml <dependencies> <dependency> <groupId>org.xerial</groupId> <artif 阅读全文
posted @ 2023-08-20 15:57 这个杀手冷死了 阅读(713) 评论(0) 推荐(0) 编辑