修改动作链

打开conf/mvc/nutzbook-mvc-chain.js, 在ModuleProcessor后面加入一行

              "org.nutz.integration.shiro.NutShiroProcessor",

最终效果

var chain={
    "default" : {
        "ps" : [
              "net.wendal.nutzbook.mvc.LogTimeProcessor",
              "org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor",
              "org.nutz.mvc.impl.processor.EncodingProcessor",
              "org.nutz.mvc.impl.processor.ModuleProcessor",
              "org.nutz.integration.shiro.NutShiroProcessor",
              "org.nutz.mvc.impl.processor.ActionFiltersProcessor",
              "org.nutz.mvc.impl.processor.AdaptorProcessor",
              "org.nutz.mvc.impl.processor.MethodInvokeProcessor",
              "org.nutz.mvc.impl.processor.ViewProcessor"
              ],
        "error" : 'org.nutz.mvc.impl.processor.FailProcessor'
    }
};

results matching ""

    No results matching ""