springboot启动项目报错Casued by: java.lang.NoClassDefFoundError: org/springframework/jdbc/support/JdbcTransactionManager的解决方案:
出现这种问题的原因是因为缺少spring-boot-starter-data-jdbc依赖,解决方案为在pom.xml文件中添加相关依赖,依赖版本为你创建的springboot项目的版本
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
<!--依赖版本要与你创建的springboot项目的版本对应-->
<version>2.4.1</version>
</dependency>
,