springframework.beans.factory.BeanCreationException: Error creating bean"/>
解决:nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
做spring练习,做到 注解事务管理 时出现错误(部分截图):
搜索之后好像说是jar包冲突,查看依赖:
确实冲突了。修改spring-webmvc版本与spring-jdbc一致:
<dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>5.3.4</version></dependency><!-- .springframework/spring-jdbc --><dependency><groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>5.3.4</version></dependency>
重新加载maven依赖,成功解决
更多推荐
解决:nested exception is org.springframework.beans.factory.BeanCreationException:
发布评论