How do you implement Spring Boot with WebFlux?
Build a reactive Spring Boot app with WebFlux using Mono, Flux, functional routes and WebClient, and learn when WebFlux beats Spring MVC.
2,881 posts about Java: questions with answers, tutorials and articles, newest first.
Build a reactive Spring Boot app with WebFlux using Mono, Flux, functional routes and WebClient, and learn when WebFlux beats Spring MVC.
Add spring-kafka, configure the consumer group and deserializers, and annotate a method with @KafkaListener. Includes offset control, dead-letter topics and concurrency.
A complete Spring Boot and Apache Kafka setup: dependency, YAML config, KafkaTemplate producer, @KafkaListener consumer, dead-letter topic and tests.
Use RabbitTemplate to publish and @RabbitListener to consume messages in Spring Boot, with queue declaration, JSON conversion and dead-letter handling.
RabbitTemplate is the Spring AMQP class that publishes and receives RabbitMQ messages, converts objects to JSON and supports confirms and request-reply calls.
Set up RabbitMQ in Spring Boot with connection properties, queue, exchange and binding beans, JSON messages, a listener and a dead-letter queue.
spring-boot-starter-amqp configures RabbitMQ connections, RabbitTemplate and listeners so your Spring Boot app can send and receive messages.
Stripe's Webhook class verifies that events really come from Stripe. Learn constructEvent, raw body handling, event deserialisation and idempotent processing.
Create a Spring Boot endpoint for Stripe webhooks, verify the signature with the raw body and test it locally using the Stripe CLI.
Create a Stripe PaymentIntent from a Spring Boot REST endpoint, return the client secret, confirm in the browser and fulfil orders from a verified webhook.
stripe-java is Stripe's official Java SDK. See how to create PaymentIntents, handle webhooks safely, and avoid the legacy Charge API in new code.
Integrate Stripe into a Spring Boot app with Checkout Sessions, safe key handling and a verified webhook that confirms each payment before fulfilment.
Use @RequestParam with MultipartFile to receive uploads in Spring Boot. Covers the form, safe saving, size limits, multiple files and tests.
Build a Thymeleaf file upload form for Spring Boot 3 with MultipartFile, size limits, validation, flash messages and safe file storage.
Build a Thymeleaf upload form and a Spring Boot controller that validates, limits and safely stores files, including multi-file uploads and error handling.
The Hibernate Dialect adapts HQL and JPQL to each database's SQL. Learn automatic detection in Hibernate 6, common dialects, explicit setup and custom functions.
Learn how to extend a Hibernate 6 dialect, register custom SQL functions, and when a FunctionContributor is a better choice than a new dialect.
Learn two ways to listen to entity changes in Hibernate: portable JPA listener classes and Hibernate event listeners registered through an Integrator.
LocalContainerEntityManagerFactoryBean creates the JPA EntityManagerFactory from a DataSource, vendor adapter and packages to scan. See when Boot does it for you.
Add spring-boot-starter-data-jpa, set datasource and JPA properties, and define jakarta.persistence entities. Covers ddl-auto, open-in-view, batching and SQL logging.