Examples of MenuInitService


Examples of org.jeecgframework.web.system.service.MenuInitService

 
  public void contextInitialized(ServletContextEvent event) {
    WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());
    SystemService systemService = (SystemService) webApplicationContext.getBean("systemService");
    MenuInitService menuInitService = (MenuInitService) webApplicationContext.getBean("menuInitService");
   
    /**
     * 第一部分:对数据字典进行缓存
     */
    systemService.initAllTypeGroups();
   
   
   
    /**
     * 第二部分:自动加载新增菜单和菜单操作权限
     * 说明:只会添加,不会删除(添加在代码层配置,但是在数据库层未配置的)
     */
    if("true".equals(ResourceUtil.getConfigByName("auto.scan.menu.flag").toLowerCase())){
      menuInitService.initMenu();
    }
   
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.