Encountered issues - GitKaran/Sample-Boot GitHub Wiki

  • Spring Boot 2.1.7 is not compatible with Flyway 6.0 so use Flyway version 5.2.4

  • "build-helper-maven-plugin" is needed so that maven will add the JOOQ generated code resides in src/main/jooq directory as source folder otherwise JOOQ generated code will not be identified

  • JacksonConverterFactory is needed for Retrofit builder for ResponseBody conversion into JSON (serialization)

  • UnrecognizedPropertyException when retrofit gets json response and JacksonResponseBodyConverter try to convert json to jsonObject and response is having more fields to convert than object has so it cant recognise them and throws the exception.
    Solution - mark source data class with @JsonIgnoreProperties(ignoreUnknown = true) or configure Object mapper with configure(DeserializationFeature.FAIL_ON_IGNORED_PROPERTIES, false)