window.CDN_PATH = 'https://d3uf7shreuzboy.cloudfront.net'
Ask a question
Limited-Time Offer: 50% off IBM TechXchange Conference 2025
IBM’s largest technical learning event is back October 6-9 in Orlando, FL
@Health
HealthCheckResponseBuilder.state(Boolean UP)
HealthCheckResponseBuilder.status(Boolean UP)
@SchemaProperty
@RequestBodySchema
@APIResponseSchema
To make use of MicroProfile 4.0 you must add the feature to both pom.xml and server.xml. Add the following Maven dependency to your pom.xml:
<dependency> <groupId>org.eclipse.microprofile</groupId> <artifactId>microprofile</artifactId> <version>4.0.1</version> <type>pom</type> <scope>provided</scope> </dependency>
or, if you use Gradle:
dependencies { providedCompile 'org.eclipse.microprofile:microprofile:4.0.1' }
Please note: you need to use the version 4.0.1 as the version 4.0 does not pull in any dependencies (see here for more details).
4.0.1
4.0
Also, make sure to configure your Liberty server with the microProfile-4.0 feature in the server.xml:
microProfile-4.0
<server> <featureManager> <feature>microProfile-4.0</feature> <!-- ... --> </featureManager> <!-- ... --> </server>