diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/config/MybatisConfig.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/config/MybatisConfig.java index ed4c44c694..006eb27390 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/config/MybatisConfig.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/config/MybatisConfig.java @@ -27,7 +27,7 @@ import java.util.Properties; @Configuration @MapperScan(basePackages = {"io.metersphere.*.mapper"}, sqlSessionFactoryRef = "sqlSessionFactory") -@EnableJdbcRepositories(basePackages = {"io.metersphere.*.repository"}) +@EnableJdbcRepositories @EnableTransactionManagement public class MybatisConfig { @Bean