【发布时间】:2018-07-10 10:36:52
【问题描述】:
在 Spring 安全性中,是否可以在方法中获取用户可能与他们的令牌相关联的角色和属性?
@PreAuthorize("hasAuthority(T(ROLES.Admin)")
@Timed
public ResponseEntity<base> save(@RequestBody body) throws URISyntaxException {
// here i want to get all the data associated whit this user ie. jwt token
// roles etc .. as i need to pass this on
}
我看到你可以得到本金
【问题讨论】: