Spring @Transactional annotation not working with auto-wiring?

前端 未结 3 1731
闹比i
闹比i 2021-01-05 12:39

My application uses Spring auto-wiring to configure the beans. I have just tried adding @Transactional and the expected proxies do not seem to be called. I want the Personal

3条回答
  •  Happy的楠姐
    2021-01-05 13:17

    I had similar problem but another solution. In my code, there was BeanFactoryHelper.getBean(...) used. If you use this class, you need to call method use() before and release() after.

提交回复
热议问题