|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2020-2022 the original author or authors. |
|
|
|
|
* Copyright 2020-2023 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -26,6 +26,7 @@ import org.springframework.util.ClassUtils;
@@ -26,6 +26,7 @@ import org.springframework.util.ClassUtils;
|
|
|
|
|
* Utility methods for {@link HttpMessageConverter}'s. |
|
|
|
|
* |
|
|
|
|
* @author Joe Grandja |
|
|
|
|
* @author luamas |
|
|
|
|
* @since 0.1.1 |
|
|
|
|
*/ |
|
|
|
|
final class HttpMessageConverters { |
|
|
|
|
@ -41,7 +42,7 @@ final class HttpMessageConverters {
@@ -41,7 +42,7 @@ final class HttpMessageConverters {
|
|
|
|
|
jackson2Present = ClassUtils.isPresent("com.fasterxml.jackson.databind.ObjectMapper", classLoader) |
|
|
|
|
&& ClassUtils.isPresent("com.fasterxml.jackson.core.JsonGenerator", classLoader); |
|
|
|
|
gsonPresent = ClassUtils.isPresent("com.google.gson.Gson", classLoader); |
|
|
|
|
jsonbPresent = ClassUtils.isPresent("javax.json.bind.Jsonb", classLoader); |
|
|
|
|
jsonbPresent = ClassUtils.isPresent("jakarta.json.bind.Jsonb", classLoader); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private HttpMessageConverters() { |
|
|
|
|
|