当我访问时,我通过java配置来配置一个springMVC项目: http://127.0.0.1:8081/testInsert?empName=aa&role=bb&purName=cc&money=10
但是transactionManager无效!
这是我在git中的整个项目:
https://github.com/fuduhui/noxmlmvc
关于我的配置:
first I write @EnableTransactionManagement
then i add a transationManager
and i also implements TransactionManagementConfigurer,this is my override method
I use it by @transactional in service like this
这是我的整个配置代码,忽略导入:
Complex to complex (C2C)
}
and i scan the whole code ,not only the controller
但是它不起作用,为什么? 非常感谢你