2017-06-22 35 views
0

我使用的檢票1.4.9現在遷移到新版本7或6, 如何使用下面的代碼在6.6.0IRequestCycleProcessor在阿帕奇檢票6.x和7.x

protected IRequestCycleProcessor newRequestCycleProcessor() { 
     return new WebRequestCycleProcessor() { 
      protected IRequestCodingStrategy newRequestCodingStrategy() { 
       return new CryptedUrlWebRequestCodingStrategy(super.newRequestCodingStrategy()); 
      } 
     }; 
    } 

回答

1

我使用的檢票7試試這個在您的應用程序;

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(),this)); 
+0

感謝它的工作 –

+0

不客氣。 – soorapadman

1

你需要CryptoMapper

配置它添加在YourApplication#初始化以下()方法:

setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this)); 
+0

這裏CryptoMapper需要2個參數,我無法到位第2位 setRootRequestMapper的(新CryptoMapper(wrappedMapper,應用程序))傳遞null; –

+0

感謝它現在工作正常 –

+0

我相信你的回答應該鼓勵+1。 – soorapadman