Best of Spring FrameworkApril 2025

  1. 1
    Article
    Avatar of java_libhuntAwesome Java Newsletter·1y

    Understanding concepts in Event Driven Architectures (EDA)

    Event Driven Architecture (EDA) is a popular choice for developing highly scalable distributed systems, where components communicate by sending and reacting to events asynchronously. Key components include event producers, message brokers, and event consumers. Common technologies used are Kafka, RabbitMQ, AWS SNS/SQS, and Google Pub/Sub. EDA offers advantages such as scalability, flexibility, and resilience, but also has challenges like eventual consistency and complex debugging.

  2. 2
    Article
    Avatar of javarevisitedJavarevisited·1y

    Only 5% of the Developers Can Answer These Questions! 🚀

    Understanding the fundamentals of Spring Framework is crucial before diving into Spring Boot. This guide emphasizes the importance of core concepts like Dependency Injection, IoC, and Bean Scopes. It presents thought-provoking questions to enhance comprehension and mastery of Spring's capabilities, which are essential for leveraging Spring Boot’s convenience features effectively.

  3. 3
    Article
    Avatar of javarevisitedJavarevisited·1y

    Aspect Oriented Programming (AOP) in Spring Boot

    Aspect Oriented Programming (AOP) helps manage cross-cutting concerns like logging, auditing, and security in Spring Boot applications. By centralizing these aspects, developers can maintain clean business logic and avoid redundant code. Key concepts include aspects, advice, join points, pointcuts, and weaving. AOP is beneficial for improving code readability, maintainability, and consistency. The choice between Spring AOP and AspectJ depends on specific performance needs and complexity of the application.

  4. 4
    Article
    Avatar of collectionsCollections·1y

    Mastering Prompt Engineering with Spring AI: Techniques and Best Practices

    Learn practical implementations of prompt engineering techniques using Spring AI, including configuring and tuning large language models (LLMs), and implementing these methods with Java code. Key configurations discussed include temperature control, token limits, and structured responses. Effective prompting techniques such as zero-shot, one-shot, few-shot, and self-consistency are covered, along with best practices for clarity and refinement.

  5. 5
    Article
    Avatar of springSpring·1y

    CVE-2025-22234: Spring Security BCryptPasswordEncoder maximum password length breaks timing attack mitigation

    The post discusses CVE-2025-22234, a vulnerability related to the maximum password length in BCryptPasswordEncoder, which affects its timing attack mitigation in Spring Security.

  6. 6
    Article
    Avatar of baeldungBaeldung·1y

    Extracting Structured Data From Images Using Spring AI

    Learn how to extract structured data from images using the OpenAI chat model with Spring AI. The tutorial provides step-by-step instructions to create a web service that accepts image uploads, analyzes the images using OpenAI, and returns the structured data in JSON format. Key components include configuring Maven dependencies, setting up Spring Boot configurations, and defining POJO classes for structured outputs.

  7. 7
    Article
    Avatar of springSpring·1y

    Securing Spring AI MCP servers with OAuth2

    Spring AI supports Model Context Protocol (MCP), allowing AI models to interact with external tools. To secure MCP Servers, the latest MCP specification leverages the OAuth2 framework to provide robust security and permission management. Spring Security and Spring Authorization Server can be utilized to add OAuth2 capabilities to Spring MCP servers, ensuring only authenticated requests with access tokens are processed. The article covers integrating OAuth2 into a sample MCP Server, demonstrating token issuance and validation.