The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.springframework.transaction.PlatformTransactionManager' in your configuration.
解决方案
添加maven依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
本文介绍了如何在SpringBoot应用中使用@Autowired注解来管理依赖,并推荐了在配置文件中定义PlatformTransactionManagerbean。同时,提到了在Maven项目中添加spring-boot-starter-jdbc依赖的重要性。
1603

被折叠的 条评论
为什么被折叠?



