As per JSON specification, I am aware that leading zeroes are not allowed in integers in JSON. But as per Jackson documentation, there is a property in Jackson library i.e.
Simply put following property on your application.properties file
application.properties
spring.jackson.parser.allow-numeric-leading-zeros=true
You can set jackson as default converter by following property if not set default
spring.http.converters.preferred-json-mapper=jackson