每次第一次启动系统,都会报出这个错误,再重启就没事了:
以下是类源码:
public class AdminUtils { public static boolean ifHasPrivilege(int roleid, String privilege, String rolecode) { boolean returnValue = false; if (roleid == 0) { return true; } else { String[] privArr = null; if (privilege != null && rolecode != null) { privArr = privilege.split(","); for (int i = 0; i < privArr.length; ++i) { if (privArr[i].equalsIgnoreCase(rolecode)) { returnValue = true; break; } } } return returnValue; } } }
以下是enjoy页面调用的地方:
#if(com.sdzjxx.utils.AdminUtils::ifHasPrivilege(roleid,privilege,"p01")) <li class="layui-nav-item layui-nav-itemed"><a class="" href="javascript:;">材料管理</a> <dl class="layui-nav-child"> <dd> <a class="hp-tab-add" hp-href="#(ctx)/manage/category/" href="javascript:;">| 管理 |</a> </dd> </dl></li> #end