Best of Spring BootDecember 2024

  1. 1
    Article
    Avatar of baeldungBaeldung·1y

    Implementing an AI Assistant with Spring AI

    This tutorial delves into the features of Spring AI to create an AI assistant using LLMs like ChatGPT. It highlights the key functionalities, including context-aware response generation, structured output conversion, and integrating with Vector DBs. The process involves setting up necessary dependencies, creating relevant tables, and implementing callback functions. Common concerns like data privacy and maintaining conversational states are addressed using Advisors APIs. Examples demonstrate how to build a chatbot in a legacy Order Management System, showcasing practical applications of these concepts.

  2. 2
    Article
    Avatar of itnextITNEXT·1y

    Building a Single Spring Boot App with Keycloak or Okta as IdP: Introduction

    A comprehensive guide on building the StarVote application using Spring Boot, with Keycloak or Okta as the Identity Provider. The tutorial covers project setup, backend and frontend implementation, securing the app, and enabling authentication with Keycloak or Okta step-by-step.

  3. 3
    Article
    Avatar of baeldungBaeldung·1y

    Automated Testing for OpenAPI Endpoints Using CATS

    Explores the use of CATS (Contract Auto Test Service) for automated testing of REST APIs with OpenAPI configurations. CATS generates and runs tests based on the API contract, simplifying the testing process and improving API reliability by identifying potential issues early. Key features include automatic test generation, HTML report creation, and integration with authorization requirements. The post provides a detailed guide on installing CATS, configuring tests, and analyzing test reports to address common API issues.

  4. 4
    Article
    Avatar of baeldungBaeldung·1y

    Dynamic Spring Data JPA Repository Query With Arbitrary AND Clauses

    This tutorial explores three approaches to creating dynamic queries in Spring Data JPA repositories: Query by Example, Query by Specification, and QueryDSL. The post provides a detailed setup for each method, including code examples for entity classes, repository definitions, and querying logic. It compares these methods based on their complexity and suitability for different types of queries.