Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
21f8b4eb
Commit
21f8b4eb
authored
May 24, 2020
by
ZhengJie
Browse files
[代码完善](v2.5): v2.5 beta 事务优化
close #362
parent
d9886066
Changes
22
Hide whitespace changes
Inline
Side-by-side
eladmin-tools/src/main/java/me/zhengjie/service/impl/PictureServiceImpl.java
View file @
21f8b4eb
...
@@ -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}"
)
...
...
eladmin-tools/src/main/java/me/zhengjie/service/impl/QiNiuServiceImpl.java
View file @
21f8b4eb
...
@@ -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
;
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment