Commit 21f8b4eb authored by ZhengJie's avatar ZhengJie
Browse files

[代码完善](v2.5): v2.5 beta 事务优化

close #362
parent d9886066
...@@ -31,7 +31,6 @@ import me.zhengjie.utils.*; ...@@ -31,7 +31,6 @@ import me.zhengjie.utils.*;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -46,7 +45,6 @@ import java.util.*; ...@@ -46,7 +45,6 @@ import java.util.*;
@Slf4j @Slf4j
@RequiredArgsConstructor @RequiredArgsConstructor
@Service(value = "pictureService") @Service(value = "pictureService")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class PictureServiceImpl implements PictureService { public class PictureServiceImpl implements PictureService {
@Value("${smms.token}") @Value("${smms.token}")
......
...@@ -43,7 +43,6 @@ import org.springframework.cache.annotation.CachePut; ...@@ -43,7 +43,6 @@ import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -57,7 +56,6 @@ import java.util.*; ...@@ -57,7 +56,6 @@ import java.util.*;
@Service @Service
@RequiredArgsConstructor @RequiredArgsConstructor
@CacheConfig(cacheNames = "qiNiu") @CacheConfig(cacheNames = "qiNiu")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class QiNiuServiceImpl implements QiNiuService { public class QiNiuServiceImpl implements QiNiuService {
private final QiNiuConfigRepository qiNiuConfigRepository; private final QiNiuConfigRepository qiNiuConfigRepository;
......
Supports Markdown
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