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
5a88fee3
Commit
5a88fee3
authored
Apr 16, 2019
by
zhengjie
Browse files
修复email更新后的缓存问题
parent
5787aa15
Changes
4
Hide whitespace changes
Inline
Side-by-side
eladmin-common/src/main/java/me/zhengjie/swagger2/SwaggerConfig.java
View file @
5a88fee3
package
me.zhengjie.swagger2
;
import
com.google.common.base.Predicates
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
springfox.documentation.builders.ApiInfoBuilder
;
...
...
@@ -25,11 +26,14 @@ import java.util.List;
@EnableSwagger2
public
class
SwaggerConfig
{
@Value
(
"${jwt.header}"
)
private
String
tokenHeader
;
@Bean
public
Docket
createRestApi
()
{
ParameterBuilder
ticketPar
=
new
ParameterBuilder
();
List
<
Parameter
>
pars
=
new
ArrayList
<
Parameter
>();
ticketPar
.
name
(
"Authorization"
).
description
(
"token"
)
ticketPar
.
name
(
tokenHeader
).
description
(
"token"
)
.
modelRef
(
new
ModelRef
(
"string"
))
.
parameterType
(
"header"
)
.
defaultValue
(
"Bearer "
)
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/repository/PermissionRepository.java
View file @
5a88fee3
...
...
@@ -29,7 +29,5 @@ public interface PermissionRepository extends JpaRepository<Permission, Long>, J
*/
List
<
Permission
>
findByPid
(
long
pid
);
Set
<
Permission
>
findByRoles_Id
(
Long
id
);
Set
<
Permission
>
findByRoles
(
Set
<
Role
>
roles
);
}
eladmin-tools/src/main/java/me/zhengjie/service/impl/AlipayServiceImpl.java
View file @
5a88fee3
...
...
@@ -126,6 +126,6 @@ public class AlipayServiceImpl implements AlipayService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
AlipayConfig
update
(
AlipayConfig
alipayConfig
)
{
return
alipayRepository
.
save
AndFlush
(
alipayConfig
);
return
alipayRepository
.
save
(
alipayConfig
);
}
}
eladmin-tools/src/main/java/me/zhengjie/service/impl/EmailServiceImpl.java
View file @
5a88fee3
...
...
@@ -37,8 +37,7 @@ public class EmailServiceImpl implements EmailService {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
emailRepository
.
saveAndFlush
(
emailConfig
);
return
emailConfig
;
return
emailRepository
.
save
(
emailConfig
);
}
@Override
...
...
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