Transactional cannot be resolved to a type
生活随笔
收集整理的這篇文章主要介紹了
Transactional cannot be resolved to a type
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
SpringBoot整合Mybatis時遇到“?Transactional cannot be resolved to a type?” ,以為是沒有導入相應的包 “ import org.springframework.transaction.annotation.Transactional; ” ,導入發現還是報錯,在Stack Overflow上找到解決辦法。在pom.xml中加入
<dependency><groupId>org.springframework</groupId><artifactId>spring-tx</artifactId><version>4.2.6.RELEASE</version> </dependency>轉載于:https://www.cnblogs.com/Guhongying/p/10529039.html
總結
以上是生活随笔為你收集整理的Transactional cannot be resolved to a type的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 光纤测试仪为什么使用单芯法为光纤损耗测量
- 下一篇: HP常用函数总结(一):