title: How to store request data and reponse data into database in spring boot application
body: <p>I am working on to store request data and response data if there any exceptions encountered while sending response back to client I need to store the exception also.</p>
  
  <p><strong>My DB table</strong> will ID,RequestData,ResponseData,Exception,TimeTakenToRespond</p>
  
  <p>lets say I have endpoint called /athenticateUser so my input data would be </p>
  
  <pre><code>RequestData :{"username":"mate","password":"swamy"}
  
  ResponseData :{"FirstName":"mate","LastName":"swamy","Email":"manteswamy@gmail.com"}
  </code></pre>
  
  <p>Like the above way I need to store all the request data and response data if any exception while sending response back to client that also we need store and the web service  time taken respond.</p>
  
  <p>As I am beginner to spring boot please guide step by step</p>