» Repository for the Getting Started with MicroProfile Course Bundle.
- CDI: YouTube Video - Blog post - Source code
- JAX-RS: YouTube Video - Blog post - Source code
- JSON-B: YouTube Video - Blog post - Source code
- JSON-P: YouTube Video - Blog post - Source code
- MicroProfile Config: YouTube Video - Blog post - Source code
- MicroProfile Fault Tolerance: YouTube Video - Blog post - Source code
- MicroProfile Metrics: YouTube Video - Blog post - Source code
- MicroProfile JWT Auth: YouTube Video - Blog post - Source code
- MicroProfile Rest Client: YouTube Video - Blog post - Source code
- MicroProfile OpenAPI: YouTube Video - Blog post - Source code
- MicroProfile OpenTracing: YouTube Video - Blog post - Source code
- MicroProfile Health: YouTube Video - Blog post - Source code
- MicroProfile 3.3
- OpenLiberty 20.0.0.5
- Java 11
- Maven 3.6
- WAD (Watch and Deploy) from Adam Bien (setup)
- JWTENIZR from Adam Bien
Each subfolder contains a buildAndRun.sh
(Linux/Mac) and buildAndRun.bat
(Windows) file to build and start the application on your machine using Docker. You just need Java 11 and Maven installed and a running Docker daemon to start everything. Once the application is up- and running, you can visit http://localhost:9080 to access it (if any JAX-RS endpoint is available in the project).
All projects use the following base server.xml
configuration:
<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
<featureManager>
<feature>microProfile-3.3</feature>
</featureManager>
<mpMetrics authentication="false"/>
<ssl id="defaultSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="jdkTrustStore" />
<keyStore id="jdkTrustStore" location="${java.home}/lib/security/cacerts" password="changeit" />
<httpEndpoint id="defaultHttpEndpoint" httpPort="9080" httpsPort="9443"/>
</server>
The following ibm-web-ext.xml
is used within the project to deploy the application to the root path /
:
<web-ext
xmlns="http://websphere.ibm.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
version="1.0">
<context-root uri="/"/>
</web-ext>