| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.annotation.CacheEvict; |
| | | import org.springframework.cache.annotation.CachePut; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | */ |
| | | @GetMapping(value = "/users/name/{username}") |
| | | @ApiOperation(value = "根据用户名查询用户实体") |
| | | @Cacheable(value = "user", key = "#username") |
| | | // @Cacheable(value = "user", key = "#username") |
| | | public SysUser selectByUsername(@PathVariable String username) { |
| | | return appUserService.selectByUsername(username); |
| | | } |