Spring进行开启基于注解的事务式事务时会依赖tx名称空间
若在引入名称空间时只有bean名称空间,此时则需要在eclipse的Windows下面的preferences,然后按照下图中进行查找
Spring配置时Class 'org.springframework.transaction.event.TransactionalEventListenerFactory' not found最后找到图片中带对勾的一项,把对勾去掉,点击OK,即可出现其余的名称空间
去掉对勾的时候在引入tx名称空间时虽然能够引入tx名称空间,但是tx名称空间引入的那一行会报错误
错误如下:
Class’org.springframework.transaction.event.TransactionalEventListenerFactory’ not found
此时我们要
1.找到上图中的对勾把对勾勾回
2.把原本引入的tx名称空间删除,重新找到tx名称空间导入Spring配置时Class 'org.springframework.transaction.event.TransactionalEventListenerFactory' not found把上图中tx前面的方框中的对勾去掉点击弹出方框中的ok按钮即为删除引入的tx名称空间,把tx前面的方框中的对勾加上点击弹出方框中的ok按钮即为导入引入的tx名称空间,即可解决Class ‘org.springframework.transaction.event.TransactionalEventListenerFactory’ not found的问题

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-07-17
  • 2021-06-30
  • 2022-12-23
  • 2021-05-14
猜你喜欢
  • 2021-09-14
  • 2021-06-26
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案