踩坑记录:如题,会报Property 'sqlSessionFactory ' or 'sqlSessionTemplate' are required。
4.x使用spring-boot-starter-webmvc和spring-boot-starter-webmvc-test。
3.x使用spring-boot-starter-web和spring-boot-starter-webmvc-test。
解决办法:在pom.xml里面将Spring Boot 4.x降级到 3.x,同时在降级Spring Boot时,必须同步修改这些依赖名称。
看来在开发过程中,稳定还是要优先于新潮。