如何将spring-auth2配置为使用jackson 2.x



当前Spring OAuth 2(2.0.7版)使用Jackson mapper asl 1.9.13。

我可以将spring-auth2配置为使用Jackson 2.x吗?怎样

实际上,Spring Security OAuth2允许您使用其中任何一种。只要确保在代码中使用Jackson 2类(ObjectMapper的类型应该是com.fasterxml.Jackson.databind.ObjectMapper,而不是org.codehaus.Jackson.map.ObjectMaper)。与Annotations相同。

如果您仍然有问题,请分享一些示例代码。

最新更新