feat: add java-21-sample with virtual threads and SSL health indicator#83
Merged
Merged
Conversation
leonard520
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
java-21-samplemodule to showcase Java 21 LTS features on Azure Spring Apps, modelled after the existingjava-17-sample.What's Changed
New module:
java-21-sampleStack
maven-compiler-plugin3.13.0 andmaven-resources-plugin3.3.1 pinned in<pluginManagement>to suppress plugin-validation warningsJava 21 language features demonstrated
spring.threads.virtual.enabled=trueenables Project Loom for improved concurrencyGreetingrecord used as an immutable data carrier inHelloControllerGET /java-versionGET /java-versioninstanceof— used inSslControllerwhen iterating keystore entriesSSL Health Indicator (Spring Boot 3.4)
democonfigured viaspring.ssl.bundle.jks.*with a self-signed JKS keystoremanagement.health.ssl.enabled=trueactivatesSslHealthIndicatormanagement.health.ssl.certificate-validity-warning-threshold=P30DraisesWARNINGwhen the cert expires within 30 daysGET /actuator/health/ssl— actuator-native health status (UP/WARNING/DOWN)GET /ssl/info— human-readable HTML table of certificate metadata (alias, subject, issuer, validity dates, serial)Deployment
--runtime-version Java_21--source-path . --build-env BP_JVM_VERSION=21.*Files Added
pom.xmlJava21SampleApplication.javaHelloController.javaEurekaController.javaSslController.javaapplication.propertiesssl/demo.jksREADME.md