- First, we will need to remove the extendMessageConverters method from our WebConfiguration class as the converters.clear() call will break the rendering because we removed all of the supported type converters
- Let's create a new package called model under the src/main/java/com/example/bookpub directory from the root of our project
- Next we create a class named Isbn under our newly created package directory from the root of our project with the following content:
package com.example.bookpub.model; import org.springframework.util.Assert; public class Isbn { private String eanPrefix; private String registrationGroup; private String registrant; private String publication; private String checkDigit; public Isbn(String eanPrefix, ...