开启 spring 全局事务管理器.

pull/84/head
chen.ma 3 years ago
parent 52c8ba76a6
commit b77cfc0e9c

@ -3,7 +3,9 @@ package cn.hippo4j.server;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages = "cn.hippo4j") @SpringBootApplication(scanBasePackages = "cn.hippo4j")
@MapperScan(basePackages = {"cn.hippo4j.config.mapper", "cn.hippo4j.auth.mapper"}) @MapperScan(basePackages = {"cn.hippo4j.config.mapper", "cn.hippo4j.auth.mapper"})
public class ServerApplication { public class ServerApplication {

Loading…
Cancel
Save