window.CDN_PATH = 'https://d3uf7shreuzboy.cloudfront.net'
Ask a question
Register for TechXchange with COMMUNITY30 for 30% off
Nominate for the IBM TechXchange Awards by 16 September!
@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>