Package com.jfinal.plugin.druid

Examples of com.jfinal.plugin.druid.DruidStatViewHandler


   * 配置处理器
   */
  public void configHandler(Handlers me) {
//    me.add(new SessionHandler());//将session里的参数传递到request中直接得到
    //访问路径是/admin/monitor
    DruidStatViewHandler dvh =  new DruidStatViewHandler("/admin/monitor", new IDruidStatViewAuth() {
      public boolean isPermitted(HttpServletRequest request) {//获得查看权限
//        HttpSession hs = request.getSession(false);
//        return (hs != null && hs.getAttribute("$admin$") != null);
        return true;
      }
View Full Code Here


   * 配置处理器
   */
  public void configHandler(Handlers me) {
    me.add(new SessionHandler());//将session里的参数传递到request中直接得到
    //访问路径是/admin/monitor
    DruidStatViewHandler dvh =  new DruidStatViewHandler("/admin/monitor", new IDruidStatViewAuth() {
      public boolean isPermitted(HttpServletRequest request) {//获得查看权限
//        HttpSession hs = request.getSession(false);
//        return (hs != null && hs.getAttribute("$admin$") != null);
        return true;
      }
View Full Code Here

TOP

Related Classes of com.jfinal.plugin.druid.DruidStatViewHandler

Copyright © 2018 www.massapicom. 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.