List of usage examples for org.springframework.security.oauth2.common.util Jackson2JsonParser Jackson2JsonParser
Jackson2JsonParser
From source file:org.springframework.security.oauth2.common.util.JsonParserFactory.java
public static JsonParser create() { if (ClassUtils.isPresent("com.fasterxml.jackson.databind.ObjectMapper", null)) { return new Jackson2JsonParser(); }//from w w w.j a v a 2 s .c om if (ClassUtils.isPresent("org.codehaus.jackson.map.ObjectMapper", null)) { return new JacksonJsonParser(); } throw new IllegalStateException("No Jackson parser found. Please add Jackson to your classpath."); }