日期:2014-05-17 浏览次数:20607 次
public interface AuthoritiesManager { public Map<String,String> getUrlAuthorities(String packCode); } public class AuthoritiesManagerImpl implements AuthoritiesManager { public Map<String,String> getUrlAuthorities(String packCode) { Map<String, String> urlAuthorities = new HashMap<String, String>(); urlAuthorities.put("/index.gm*", "ROLE_USER"); return urlAuthorities; } }