From b77cfc0e9c48c0ebd87716b314baeb0440cd40d5 Mon Sep 17 00:00:00 2001 From: "chen.ma" Date: Sat, 25 Dec 2021 19:35:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AF=20spring=20=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E4=BA=8B=E5=8A=A1=E7=AE=A1=E7=90=86=E5=99=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/hippo4j/server/ServerApplication.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hippo4j-server/src/main/java/cn/hippo4j/server/ServerApplication.java b/hippo4j-server/src/main/java/cn/hippo4j/server/ServerApplication.java index bffa8a57..e12cfbe5 100644 --- a/hippo4j-server/src/main/java/cn/hippo4j/server/ServerApplication.java +++ b/hippo4j-server/src/main/java/cn/hippo4j/server/ServerApplication.java @@ -3,7 +3,9 @@ package cn.hippo4j.server; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.transaction.annotation.EnableTransactionManagement; +@EnableTransactionManagement @SpringBootApplication(scanBasePackages = "cn.hippo4j") @MapperScan(basePackages = {"cn.hippo4j.config.mapper", "cn.hippo4j.auth.mapper"}) public class ServerApplication {