public enum InitializrMetadataVersion extends Enum<InitializrMetadataVersion>
Enum Constant and Description |
---|
V2
HAL-compliant metadata.
|
V2_1
Add "compatibilityRange" attribute to any dependency to specify which Spring Boot
versions are compatible with it.
|
V2_2
Add support for SemVer compliant version format.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.MediaType |
getMediaType() |
static InitializrMetadataVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InitializrMetadataVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InitializrMetadataVersion V2
public static final InitializrMetadataVersion V2_1
public static final InitializrMetadataVersion V2_2
public static InitializrMetadataVersion[] values()
for (InitializrMetadataVersion c : InitializrMetadataVersion.values()) System.out.println(c);
public static InitializrMetadataVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.springframework.http.MediaType getMediaType()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.