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相关推荐

  1. 解决jsp引用其他项目时出现的 cannot be resolved to a type错误

    JSP页面引用其他项目的时候,在jsp页面上写如下代码: <%List<CandleEntity> candleEntities;CandleOperate candleOperat ...

  2. Httpservlet cannot be resolved to a type的原因与解决方法

    Httpservlet cannot be resolved to a type,显然是Eclipse找不到相应的包,即javax.servlet. 原因: jdk 里不包括servlet-api.j ...

  3. JRBeanCollectionDataSource cannot be resolved to a type 的原因

    使用iReporter设计报表,在jsp中调用时,报错,错误信息为: JRBeanCollectionDataSource cannot be resolved to a type 有可能是因为你没有 ...

  4. 解决 javax.servlet.jsp.JspException cannot be resolved to a type的问题

    使用eclipse导入maven项目后出现javax.servlet.jsp.JspException cannot be resolved to a type问题 问题截图 问题原因 没有部署tom ...

  5. BASE64Encoder cannot be resolved to a type类似问题的解决办法

    BASE64Encoder cannot be resolved to a type类似问题的解决办法 参考文章: (1)BASE64Encoder cannot be resolved to a t ...

  6. xxx cannot be resolved to a type 问题的几种常见原因

    eclipse新导入的项目出现"XX cannot be resolved to a type"的报错信息时,一般有如下几种原因: JDK不匹配(或不存在) 不匹配时,重新安装一个 ...

  7. MyEclipse报错:String cannot be resolved to a type

    往MyEclipse导入项目后,java 类总是报出n 多红叉,实在是惨不忍睹,String cannot be resolved to a type 都出来了, 开始以为是Myeclipse的事,但 ...

  8. MyEclipse 报 String cannot be resolved to a type

    问题描述 项目可以正常启动,但是在MyEclipse中显示如下图信息所示,提示 String cannot be resolved to a type.虽然可以使用但是看着错误心里很别扭. 问题原因 ...

  9. Entity(Table)(Id) cannot be resolved to a type(spring boot)

    在学习spring boot的过程中 整合jpa时 @Entity @Table @Id前有红叉  无法import包  且报XXX cannot be resolved to a type 原因是没 ...

最新文章

  1. 在CentOS 6.3 64bit上安装redis 3.0.3
  2. 经营成功的测试职业生涯
  3. UIView常见属性
  4. Vue — 第四天(components组件)
  5. python图片分类毕业设计成果报告书_毕业设计成果报告书模板.doc
  6. Linux 下用C语言连接 sqlite
  7. ubuntu for win10 里运行apache+php
  8. java 判断值是否设置,获取Java中“-非法访问”设置的当前值
  9. 序列化与反序列化(XML、二进制)
  10. jquery 加载提示框
  11. Iperf性能测试的问题小结
  12. python写界面c这算法_OpenCV算法精解:基于Python与C.pdf
  13. linux邮件客户端软件,适用于Linux的4款最佳电子邮件客户端 | MOS86
  14. 鬼谷八荒先天气运修改器
  15. Android强大的控件——RecyclerView
  16. 代价敏感学习初探 - 有偏损失函数设计
  17. 大型养猪场智能监控系统开发
  18. [css] 抖动效果
  19. 国际商务英语学习[十七]
  20. 基于springboot的汽车配件管理系统

热门文章

  1. Linux下安装nginx, php, php-fpm并配置
  2. Linux下获得线程ID syscall(224)
  3. 最简单的java单例
  4. /deep/使用方式方式;/deep/无效; ::v-deep和>>>使用;
  5. React开发(279):ant design 改变按钮状态判断方式
  6. React开发(219):签名错误一般是对应参数错误
  7. react学习(62)--注意数据格式返回
  8. 前端学习(3039):vue+element今日头条管理-侧边菜单栏的展示和收缩
  9. [html] 使用button当按钮和使用div当按钮有什么区别?
  10. [css] 请使用css写一个多级的下拉菜单