Best of Spring FrameworkOctober 2024

  1. 1
    Article
    Avatar of faunFaun·2y

    Java 23, SpringBoot 3.3.4, Jakarta 10

    A rapid-start template optimized for microservices and cloud-native architectures using Java 23, SpringBoot 3.3.4, and Jakarta 10. It features a packaging structure based on Hexagonal Architecture, cross-cutting concerns handled via AOP, JWT for authentication and authorization, robust web security, and Docker containerization. The Hexagonal Architecture ensures a clear separation of concerns, maintaining flexibility and adaptability. Comprehensive logging, multiple Spring profiles, and extensive use of Swagger and OpenAPI for API documentation are also highlighted.

  2. 2
    Video
    Avatar of teluskoTelusko·2y

    Spring Boot and Spring Security with JWT

    The post discusses the Spring Framework, popular in enterprise Java applications for its scalability and security. It highlights the evolution from Java EE to Spring and introduces Spring Boot, which simplifies project setup and management. The post also mentions Spring's role in building various applications like microservices and serverless apps, emphasizing dependency injection and the ioc container. The discussion extends to auto-wiring and configuring Spring Boot via annotations for efficient object management.

  3. 3
    Article
    Avatar of justjavaJust Java·2y

    Java Spring Boot for Beginners | Part 3 : Dependency Injection and Components

    Discover how Dependency Injection and IoC containers in Java Spring Boot can help make your code cleaner and more efficient. The tutorial provides an in-depth explanation of these concepts for beginners.

  4. 4
    Article
    Avatar of faunFaun·2y

    Java 23, SpringBoot 3.3.4: Logback Setup— Part 3

    This post provides a detailed guide on setting up Logback in a Spring Boot application, focusing on best practices for logging, including managing log levels, avoiding sensitive data leaks, using rolling file appenders, enabling asynchronous logging, and externalizing logging configurations. It also discusses the integration of logging properties in application properties, and configuring rolling policies based on size and time. The post outlines how to implement meaningful log messages, use MDC for contextual information, and leverage structured logging for better log aggregation and monitoring.

  5. 5
    Article
    Avatar of baeldungBaeldung·2y

    Caching Guide

    Caching enhances system performance by temporarily storing data from resource-intensive methods. This guide explores popular caching libraries like Caffeine, Ehcache, and JCache, and provides steps for implementing cache abstraction in Spring applications. Advanced topics include two-level caching configuration and the use of multiple caching managers within the same project.

  6. 6
    Article
    Avatar of jetbrainsJetBrains·2y

    Top Java Blogs to Follow in 2024 – Part 1

    A curated list of top community Java blogs for 2024. These multi-author platforms, including Baeldung, IntelliJ IDEA Blog, Foojay.io, Spring Blog, Dev.java, and InfoQ, offer a wealth of expert opinions, tutorials, product updates, and the latest trends in Java development. Each blog was chosen for its regular updates, in-depth material, and diverse resources, making them essential for staying informed and enhancing your Java knowledge.

  7. 7
    Article
    Avatar of baeldungBaeldung·2y

    Solving “java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver”

    Spring offers various modules for persistence using different Java technologies. The exception java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver occurs when the JDBC driver's class isn't found during runtime. This can be fixed by adding the MySQL Connector/J to the classpath. The post provides a guide on solving this issue using JUnit 5 and Maven.

  8. 8
    Article
    Avatar of baeldungBaeldung·2y

    HTTP DELETE With Request Body

    This tutorial covers how to implement an HTTP DELETE endpoint that accepts a request body, exploring different ways to send these requests using various REST client implementations like Spring RestTemplate, Java HttpClient, and Apache HTTP clients. Examples with detailed code snippets demonstrate creating client classes, handling DELETE requests with bodies, and testing for correct behavior.

  9. 9
    Article
    Avatar of baeldungBaeldung·2y

    Handling the Blocking Method In Non-Blocking Context Warning

    Spring WebFlux introduces reactive programming in Spring Boot, and developers may encounter the warning 'Possibly blocking call in non-blocking context could lead to thread starvation'. This post walks through reproducing the warning, exploring its risks, and offering solutions. These include adopting reactive alternatives or using a separate thread pool for blocking operations to avoid blocking the HTTP request handling threads. Practical code examples illustrate both approaches.

  10. 10
    Article
    Avatar of baeldungBaeldung·2y

    Query JPA Repository With Single Table Inheritance Subtypes

    JPA provides various strategies for handling inheritance in Java-based applications, including single table inheritance where data of all subtypes is stored in a single table. Using annotations like @Inheritance, @DiscriminatorColumn, and @DiscriminatorValue, developers can configure this strategy, enabling easier querying of subtypes with JPA repositories. The tutorial covers setting up repository classes, persistence configuration, and using custom queries to filter subclass data.