Search results
Code Snippets / Recipes
- Expose Hibernate Statistics through JMX MBeans in Spring Data JPA
- Turn off autocommit for Spring Data JPA, Hibernate, Hikari RESOURCE_LOCAL JPA transactions
- Spring Data JPA, Hibernate Logging Configuration for Development and Production Environments
- Start a Cosmos DB Emulator Docker Container
- Add Cosmos DB emulator Certificate to TrustStore via Bash Shell Script
- Create KeyStore / Truststore Programmatically
- Thymeleaf Email HTML Template, loop through Map, embed Logo
- Spring Boot RESTful Controller Exception Handling with @ControllerAdvice
- Expose Embedded Tomcat MBeans through JMX in Spring Boot
- Spring Boot APIs @ControllerAdvice vs @RestControllerAdvice
- Retrieve a list of entities from RESTful APIs with RestTemplate and ParameterizedTypeReference
- Inject a Java Map from a Properties file in Spring applications
- Inject a Java Map from a YAML file in Spring Boot applications
- Spring Boot Console application that runs indefinitely until graceful shutdown
- Capture and Assert Logs with JUnit 5 in Spring Boot applications
- Return Spring MVC view, redirect, or forward name
- Configure a single RestTemplate Bean to use Apache HttpClient 5 Connection Pool
- Register multiple RestTemplate Beans with Spring’s ApplicationContext Programmatically
- Add a Spring MVC Interceptor to your Spring Boot applications
- Spring Boot and IntelliJ - Autoreload Java Classes, and Thymeleaf templates without restart
- Spring MVC Post-Redirect-Get (PRG) Pattern
- Spring Boot 3 and Spring Security 6 Configuration to access H2 Console UI
- Password Rules and Validation with Passay
- Spring Boot configuration to switch between ThreadPoolTaskExecutor and VirtualThreadTaskExecutor
- Schedule publishing RefreshEvent to reload @RefreshScope-annotated Beans in Spring Boot applications