fix: TestPlanService添加Transactional注解

This commit is contained in:
chenjianxing 2021-08-12 15:26:44 +08:00 committed by jianxing
parent fbf36241da
commit f73f99391b
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -60,6 +61,7 @@ import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class TestPlanService { public class TestPlanService {
Logger testPlanLog = LoggerFactory.getLogger("testPlanExecuteLog"); Logger testPlanLog = LoggerFactory.getLogger("testPlanExecuteLog");