Best of Spring FrameworkAugust 2024

  1. 1
    Article
    Avatar of javarevisitedJavarevisited·2y

    Top 5 Websites to Learn Spring Framework in Depth

    Spring Framework is a popular tool in the Java ecosystem for building robust and scalable applications. To help learners, the post lists five websites that offer comprehensive Spring tutorials and courses: Udemy, Spring Framework Official Documentation, Baeldung, Java Brains, and Spring Framework Guru. These platforms provide resources for both beginners and advanced developers, covering topics from dependency injection to Spring Boot, AOP, and data access.

  2. 2
    Article
    Avatar of itnextITNEXT·2y

    CQRS — Command Query Responsibility Segregation — A Java, Spring, SpringBoot, and Axon Example

    This post introduces Command Query Responsibility Segregation (CQRS) and explains its benefits in software architecture, including its ability to handle different loads for read and write operations, manage security concerns, and maintain data consistency. It provides a practical example using Java, Spring, SpringBoot, and Axon, demonstrating how to implement CQRS with separate databases for command and query operations. Key components like commands, queries, models, EventHandlers, and CommandBus are detailed, alongside dependencies and database configuration.

  3. 3
    Article
    Avatar of baeldungBaeldung·2y

    Changing Spring Boot Properties at Runtime

    Discover how to dynamically manage Spring Boot application configurations at runtime using various methods. Learn about creating prototype-scoped beans, utilizing Spring Cloud's @RefreshScope and /actuator/refresh endpoint, and managing external configuration files. These techniques allow for on-the-fly changes without restarting the application, providing flexibility and enhancing maintainability.

  4. 4
    Article
    Avatar of javarevisitedJavarevisited·2y

    Most popular Java frameworks for web development

    Java remains a popular programming language for web development due to its scalability, security, and reliability. Several frameworks like Java Server Faces (JSF), Spring, Google Web Toolkit (GWT), Hibernate, Struts, Grails, Dropwizard, Blade, and Play stand out for their unique features and capabilities. These frameworks help developers build structured, secure, and efficient applications, with some focusing on rapid development and ease of use, while others offer robust support for enterprise-level applications.

  5. 5
    Article
    Avatar of baeldungBaeldung·2y

    DDD with jMolecules

    Learn how to leverage jMolecules to express Domain-Driven Design (DDD) concepts using annotations and type-based interfaces. The post covers key DDD elements such as Value Objects, Entities, Aggregate Roots, and Repositories, and demonstrates how to use jMolecules for building a domain model of a blogging application. It also explains how to integrate jMolecules with popular Java and Spring libraries and enforce DDD principles using ArchUnit.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    11 Non-AI Java Trends: From GraalVM to Spring Modulith

    Java developers are showcasing interest in several non-AI trends. These include GraalVM for improving runtime efficiency, Data-Oriented Programming (DOP) for treating data as first-class citizens, the debate between Quarkus and Spring Boot, in-depth details of Spring Internals, Kotlin integration with Spring Boot, and security improvements with Spring Security 3 and OAuth2. Additionally, discussions focus on the benefits of Spring Data JDBC, alternatives to Thymeleaf templates, the evolving Spring Modulith architecture, enhanced runtime efficiency with virtual threads and CRaC in Java 21, and observability improvements introduced in Spring Boot 3.2 and 3.3.

  7. 7
    Article
    Avatar of javarevisitedJavarevisited·2y

    Service Locator Factory Pattern

    The Service Locator Factory pattern helps locate services at runtime based on specific criteria. This guide focuses on implementing Spring's service locator pattern to avoid boilerplate code and enhance efficiency. The example provided demonstrates building a payment system with different payment processors (Visa, Amex) by using components such as Client, Service Locator, Initial Context, and Service Factory. The key takeaway includes reducing tight coupling and the need for boilerplate code for service management.

  8. 8
    Article
    Avatar of javarevisitedJavarevisited·2y

    6 Best Udemy Courses to Learn Spring Security with JTW, OAuth2 in 2024

    Spring Security is a crucial framework for securing Java-based web applications, offering features such as authentication, authorization, and out-of-the-box security measures. This post highlights the best Udemy courses for learning Spring Security in 2024, covering topics like OAuth2, JWT, CSRF, and more. These courses are designed for Java developers looking to enhance their security skills, with options for beginners to advanced users.

  9. 9
    Article
    Avatar of itnextITNEXT·2y

    Comparing WebFlux and Spring MVC with JMeter, Kotlin, and Spock — A concerts registration WebApps example

    The post discusses the comparison between Spring WebFlux and Spring MVC architectures by implementing two Spring Boot applications with Kotlin and benchmarking their performances using JMeter. The WebFlux application, which follows a reactive non-blocking model, is compared to the traditional blocking MVC model. It highlights the increased capacity and performance benefits of using WebFlux, especially in handling high-load scenarios. Detailed setup instructions for JMeter and Docker configurations are provided, along with test results showing WebFlux's resilience in processing more requests compared to the MVC architecture.

  10. 10
    Article
    Avatar of justjavaJust Java·2y

    Spring Security - Cross-Site Request Forgery 🔒

    CSRF (Cross-Site Request Forgery) is an attack where a malicious actor tricks an authenticated user into performing unwanted actions on a web application. This happens as browsers automatically include user credentials with web requests. The post provides a detailed explanation using diagrams, explaining how such an attack works and emphasizing the importance of implementing defenses like anti-CSRF tokens and SameSite cookies to mitigate risks. It also mentions that Spring Security handles CSRF attack prevention by default.