1. public void configInterceptor(Interceptors me) {
    2. // 添加控制层全局拦截器
    3. me.addGlobalActionInterceptor(new GlobalActionInterceptor());
    4. // 添加业务层全局拦截器
    5. me.addGlobalServiceInterceptor(new GlobalServiceInterceptor());
    6. me.add(new GlobalActionInterceptor());
    7. }
    8. }