Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-14704

Springmvc+mybatis project use @transaction not roll back with Spring JavaConfig

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 4.3.2
    • Fix Version/s: None
    • Component/s: Transaction
    • Labels:
      None

      Description

      demo project is --> https://github.com/edeye/tt

      1.
      add @ImportResource(

      { "classpath:spring-ctx-ds.xml" }

      ) in com.common.spring.config.DataCfg line 19
      Spring @Transaction roll back success

      2.
      del @ImportResource(

      { "classpath:spring-ctx-ds.xml" }

      ) in com.common.spring.config.DataCfg line 19
      Spring @Transaction roll back fail,

      I ask the same question to mybatis

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            edeye edeye
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 23 weeks, 6 days ago