search

Home  >  Q&A  >  body text

How to configure Spring Boot declarative transactions?

How to configure declarative transactions in Spring Boot?

Previous Spring knew how to configure it, as shown below.

Fortunately, I know how to configure Spring Boot’s annotation style, but I haven’t succeeded in declarative style for a long time.

This is the configuration, I have been fiddling with it for a long time

The purpose is for the project to use both annotation and declarative transaction management

PHP中文网PHP中文网2744 days ago792

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-05-27 17:43:17

    When you see aop, look for interceptor

    Look at the two Beans at the back

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-27 17:43:17

    It seems quite convenient.
    http://blog.didispace.com/spr...

    reply
    0
  • Cancelreply