0
我有一個Restful服務,它在傳遞產品代碼時返回產品信息。 界面會看起來像如何在ASP.Net中使用Spring AOP登錄RESTful服務
[OperationContract]
[WebInvoke(UriTemplate = "Product/{ProductCode}", Method = "GET", BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
Product GetProductInformation(String ProductCode);
我通過輸入URI訪問來自瀏覽器的服務。
我實現通過Spring AOP的日誌。如何使用Spring AOP截取方法。我嘗試過使用NameMatchMethodPointcutAdvisor,但我沒有在訪問服務之前使用spring創建服務對象,它無法攔截。有沒有任何可能的方式來實現這個日誌記錄?