This commit is contained in:
Stéphane Nicoll
2025-10-20 13:33:00 +02:00
parent 93039fb472
commit 1b1801adb1
5 changed files with 8 additions and 8 deletions
@@ -51,14 +51,14 @@ class InitializrService {
private static final String FILENAME_HEADER_PREFIX = "filename=\"";
/**
* Accept header to use to retrieve the json meta-data.
* Accept header to use to retrieve the JSON meta-data.
*/
public static final String ACCEPT_META_DATA = "application/vnd.initializr.v2.1+"
+ "json,application/vnd.initializr.v2+json";
/**
* Accept header to use to retrieve the service capabilities of the service. If the
* service does not offer such feature, the json meta-data are retrieved instead.
* service does not offer such feature, the JSON meta-data are retrieved instead.
*/
public static final String ACCEPT_SERVICE_CAPABILITIES = "text/plain," + ACCEPT_META_DATA;
@@ -45,7 +45,7 @@ public final class ConfigurationMetadataRepositoryJsonBuilder {
/**
* Add the content of a {@link ConfigurationMetadataRepository} defined by the
* specified {@link InputStream} json document using the default charset. If this
* specified {@link InputStream} JSON document using the default charset. If this
* metadata repository holds items that were loaded previously, these are ignored.
* <p>
* Leaves the stream open when done.
@@ -59,7 +59,7 @@ public final class ConfigurationMetadataRepositoryJsonBuilder {
/**
* Add the content of a {@link ConfigurationMetadataRepository} defined by the
* specified {@link InputStream} json document using the specified {@link Charset}. If
* specified {@link InputStream} JSON document using the specified {@link Charset}. If
* this metadata repository holds items that were loaded previously, these are
* ignored.
* <p>
@@ -142,7 +142,7 @@ public final class ConfigurationMetadataRepositoryJsonBuilder {
/**
* Create a new builder instance using {@link StandardCharsets#UTF_8} as the default
* charset and the specified json resource.
* charset and the specified JSON resource.
* @param inputStreams the source input streams
* @return a new {@link ConfigurationMetadataRepositoryJsonBuilder} instance.
* @throws IOException on error
@@ -29,7 +29,7 @@ import org.springframework.boot.configurationmetadata.json.JSONArray;
import org.springframework.boot.configurationmetadata.json.JSONObject;
/**
* Read standard json metadata format as {@link ConfigurationMetadataRepository}.
* Read standard JSON metadata format as {@link ConfigurationMetadataRepository}.
*
* @author Stephane Nicoll
*/
@@ -4,7 +4,7 @@
"name": "spring.http.converters.preferred-json-mapper",
"type": "java.lang.String",
"defaultValue": "jackson",
"description": "Preferred JSON mapper to use for HTTP message conversion. By default, auto-detected according to the environment. Supported values are 'jackson', 'jackson2' (deprecated), 'gson', 'jsonb' and 'kotlin-serialization'. When other json mapping libraries are present, use a custom HttpMessageConverters bean to control the preferred mapper."
"description": "Preferred JSON mapper to use for HTTP message conversion. By default, auto-detected according to the environment. Supported values are 'jackson', 'jackson2' (deprecated), 'gson', 'jsonb' and 'kotlin-serialization'. When other JSON mapping libraries are present, use a custom HttpMessageConverters bean to control the preferred mapper."
}
],
"hints": [
@@ -37,7 +37,7 @@ import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
/**
* Provide the mapping of json mixin class to consider.
* Provide the mapping of JSON mixin class to consider.
*
* @author Stephane Nicoll
* @since 4.0.0