SpringBoot + Java 17 @Valid not validating POJO

I was recently trying to learn Spring and Java 17 as I only have experience with Dropwizard and Java 11, and I would like to do validation on a POJO, in a POST or PUT request. I’ve encountered several examples, but locally testing, I don’t seem to be able to actually run into the validation,… Read More SpringBoot + Java 17 @Valid not validating POJO

Comparing 2 HashMap with Key as String and Value as UserDefined Object

I want to output a boolean as true indicating both maps have same Key and values. If i use equals() it returns false. How can i output as true , Object references are different. But the entries are same I have 2 maps below Map<String,Information> map1=new HashMap<>(); map1.put("key1", new Information("10","20","30","40")); map1.put("key2", new Information("11","22","33","44")); Map<String,Information> map2=new… Read More Comparing 2 HashMap with Key as String and Value as UserDefined Object