7.2. 为 CodeReady Studio 使用 MicroProfile 快速入门
启用 MicroProfile 快速入门可简化在已安装的服务器上运行和测试的简单示例。
这些示例演示了以下 MicroProfile 功能。
- MicroProfile Config
- MicroProfile Fault Tolerance
- MicroProfile Health
- MicroProfile JWT
- MicroProfile Metrics
- MicroProfile OpenAPI
- MicroProfile OpenTracing
- MicroProfile REST 客户端
流程
-
从 Quickstart Parent Artifact 导入
pom.xml
文件。 如果您使用的快速入门需要环境变量,请配置环境变量。
在服务器 Overview 对话框中在启动配置中定义环境变量。
例如,
microprofile-opentracing
quickstart 使用以下环境变量:-
JAEGER_REPORTER_LOG_SPANS
设置为true
-
JAEGER_SAMPLER_PARAM
设置为1
-
JAEGER_SAMPLER_TYPE
设置为const
-
其他资源
关于 JBoss Enterprise Application Platform expansion pack
Red Hat JBoss Enterprise Application Platform expansion pack 支持和生命周期政策