| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.mapper.UserMapper; |
| | | import com.whyc.pojo.User; |
| | | import com.whyc.pojo.db_user.User; |
| | | import org.apache.shiro.authz.AuthorizationInfo; |
| | | import org.apache.shiro.authz.SimpleAuthorizationInfo; |
| | | import org.springframework.cache.CacheManager; |
| | | import org.springframework.context.annotation.DependsOn; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | @Service |
| | | //Unified Naming |
| | | //@CacheConfig(cacheNames ={"userBridge"}) |
| | | @DependsOn("caffeineCacheManager") |
| | | public class UserBridgeService { |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | |
| | | @Resource |
| | | private CacheManager caffeineCacheManager; |
| | | private CacheManager cacheManager; |
| | | |
| | | public User findPasswordByUserName(String name) { |
| | | User user = null; |