java吧 关注:1,262,938贴子:12,761,396

struts2中,拦截器计算action执行的时间到控制台上看不见

只看楼主收藏回复




IP属地:海南1楼2016-04-11 13:30回复
    求解


    IP属地:海南2楼2016-04-11 13:30
    回复
      2025-06-06 18:04:54
      广告
      拦截器没配错啊


      IP属地:海南3楼2016-04-11 13:31
      回复
        是不是都睡午觉了


        IP属地:海南来自Android客户端4楼2016-04-11 13:35
        回复
          自顶


          IP属地:海南来自Android客户端5楼2016-04-11 13:42
          回复
            我相信会有大神来的


            IP属地:海南来自Android客户端7楼2016-04-11 13:44
            回复
              再顶


              IP属地:海南来自Android客户端8楼2016-04-11 13:46
              回复
                不能沉


                IP属地:海南来自Android客户端9楼2016-04-11 13:47
                回复
                  2025-06-06 17:58:54
                  广告
                  都睡到十级了


                  IP属地:广东来自Android客户端10楼2016-04-11 13:47
                  收起回复
                    还没来人


                    IP属地:海南来自Android客户端11楼2016-04-11 14:02
                    回复
                      还不来人


                      IP属地:海南12楼2016-04-11 14:18
                      回复


                        13楼2016-04-11 14:23
                        收起回复
                          10级大神这都不会?


                          IP属地:广东14楼2016-04-11 14:45
                          收起回复
                            <action name="login" class="com.msstash.web.action.LoginAction">
                            <interceptor-ref name="timer"></interceptor-ref>
                            <result name="success">/jsp/success.jsp</result>
                            </action>
                            看我的。你根本不用再定义timer,这个在继承的xml里面就有了的


                            IP属地:广东15楼2016-04-11 14:53
                            收起回复
                              2025-06-06 17:52:54
                              广告
                              四月 11, 2016 2:51:16 下午 com.opensymphony.xwork2.interceptor.TimerInterceptor info
                              INFO: Executed action [//login!execute] took 904 ms.
                              四月 11, 2016 2:51:22 下午 com.opensymphony.xwork2.interceptor.TimerInterceptor info
                              INFO: Executed action [//login!execute] took 0 ms.
                              这是控制台打印信息


                              IP属地:广东16楼2016-04-11 14:54
                              收起回复