Example code for the Quarkus for Spring Developers eBook
APACHE-2.0 License
Example code for the Quarkus for Spring Developers eBook. Code is organized by chapter. Each project is self-contained, meaning there is no parent/child structure amongst projects.
Whenever possible, versions of Quarkus and Spring used in these examples are kept up-to-date as much as possible. The frameworks may have evolved since the book's writing and perhaps there is a better/different way to do something than what is shown in the book's code excerpts. The code in this repository will be kept in sync with what is shown in the book so that those examples may be replicated successfully. As new editions of the book are published, examples may be changed to reflect new patterns.
Here is a summary of some of the new features which may affect the examples in the book. The examples in this repo won't be updated to take advantage of these capabilities until a new revision of the book is released.
@Blocking
annotation used in many of the Quarkus examples is no longer needed. Quarkus will "figure it out" on its own.@TestReactiveTransaction
annotation that can automatically rollback transactions within tests, similar to how the @TestTransaction
annotation works in the Hibernate ORM examples in chapter 4.quarkus.hibernate-orm.database.generation
will default to drop-and-create
when Dev Services is in use.@NativeImageTest
has been deprecated in favor of @QuarkusIntegrationTest
maven-failsafe-plugin
has been moved out of the native
Maven profile and into the main profile.chapter-5
s Spring Kafka test example had to be modified to use KafkaContainer
instead of DockerComposeContainer
due to docker compose "flakiness" that was happening within the GitHub Actions CI/CD process. The Spring Kafka tests were continually failing within the CI/CD process.The table below describes the versions of the example snippets used in the book's chapter text:
Framework | Version |
---|---|
Quarkus | 2.1.4.Final |
Spring Boot | 2.5.4 |
The table below describes the versions of the examples in this repo:
Framework | Version |
---|---|
Quarkus | 2.16.12.Final |
Spring Boot | 2.7.16 |