请访问:https://docs.spring.io/spring-data/rest/reference/4.2/customizing/configuring-cors.html Spring Data REST Customizing Spring Data REST Configuring CORS Adding Custom Serializers and Deserializers to Jackson’s ObjectMapper