Commit 4551b885 by guominglei

添加事务

parent 0bf37ad2
......@@ -21,6 +21,7 @@ import io.netty.util.TimerTask;
import org.springframework.beans.BeanUtils;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
......@@ -34,6 +35,7 @@ import static com.alibaba.fastjson.serializer.SerializerFeature.WriteClassName;
* @author guo_m
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class ApiNodeServiceImpl implements ApiNodeService {
@Resource
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment