Saturday, August 29, 2020

How to Log RestTemplate Request Response without destroying body

When we are working with REST services, it can be very useful for debugging to be able to log both the request and the response info. We can do this very easy just by adding an interceptor in our project. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import...

Thursday, August 13, 2020

java.lang.AssertionError: UnsupportedOperationException: Cannot define class using reflection

Problem:If you are using EqualsVerifier for JUnit tesing purpose then there may be a chance you can get this error.java.lang.AssertionError: UnsupportedOperationException: Cannot define class using reflectionSolution:To overcome this error we just have to use the upper version of equalsverifier...

Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.code.TypeTags when using lombok

  At the time of `mvn clean install` if you are getting this error then it that means you are at the right place.And this error is coming means you are using Lombok dependency in your project. See the Maven dependency in your project and check the Lombok version.To solve...

Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags

 At the time of `mvn clean install` if you are getting this error then it that means you are at the right place.And this error is coming means you are using Lombok dependency in your project. See the Maven dependency in your project and check the Lombok version.To solve this...

Saturday, February 8, 2020

How to setup complete security status in AWS?

Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/. You will see your Identity & Access Management(IAM). html {overflow-x: hidden;}]]> Here security status has 5 step to complete. 1st one is already completed. Now need...