Exemplo n.º 1
0
 @Override
 public Set<String> findRoles(String username) {
   List<Role> list = roleMapper.selectByUsername(username);
   Set<String> set = new HashSet<String>(list.size());
   for (Role role : list) {
     set.add(role.getName());
   }
   logger.debug("角色集合是:{:" + set.toString() + "}");
   return set;
 }