Getting Started with LangChain4j and Spring Boot
This Spring Boot tutorial aims at Langchain4j Chat APIs to get started with and run a few examples to give you a high-level understanding.
This Spring Boot tutorial aims at Langchain4j Chat APIs to get started with and run a few examples to give you a high-level understanding.
Learn to Spring Data JPA module and work with JpaRepository interface for performing the CRUD operations in underlying databases in a Spring Boot application.
Learn to write Spring Boot RESTs that help in downloading the Excel files (.xlsx) either stored in the server or generating and then sending it.
Learn to create generic and custom error pages for specific HTTP error codes in a Spring Boot application with configuration examples.
By leveraging Spring @Import and @ImportResource annotations, we can create more modular, maintainable, and flexible Spring Boot applications.
Spring Boot provides various ways to load property files such as default application.properties, spring profiles, custom property files, environment variables, and system properties.
Learn to create a Spring Boot project with Gradle from scratch, configure the build script, create a Spring Boot application class, and run the application.
In Spring tutorial explores transaction-aware caching using transactionAware property and TransactionAwareCacheManagerProxy class with example.
This guide explores the step-by-step process of containerization and running a Spring Boot application with PostgreSQL database using Podman.
Learn to handle REST API timeouts on the server side using Spring boot MVC async, Resilience4j, @Transactional, RestTemplate and WebClient with examples.
This Spring vs. Spring Boot tutorial lists the differences between Spring framework and Spring Boot based on general characteristics and features.
Learn about Feign Client and how to use it in a Spring Boot application. Also, learn the commonly used default Feign configurations and customizing them.
Learn to display images from different sources (e.g., resources directory or database) using the Thymeleaf view templates in a Spring Boot application.
Spring Boot is an open-source framework that simplifies the development of stand-alone, production-grade Spring-based MVC applications and microservices.
Learn to create Jasper reports in a Spring boot application, step by step, by configuring JasperReport library, loading the report templates, fill the data into reports and finally export the filled reports into a variety of formats.
Learn to create a Kafka Streams application using Spring Boot. Also, learn about Topology and Processor and unit test the topology design.
Learn to write a REST API in Spring Boot that can handle single file and multiple file uploads. Also learn to validate the file sizes and types.
Learn to build REST APIs in a Spring boot application with request validation, error handling, testing and API documentation with examples.
Vaadin is a Java framework that simplifies front-end development by providing a rich set of reusable UI components and layouts. In this Spring Boot and Vaadin tutorial, we will explore the process of developing a basic CRUD application. 1. Goals Our goal is to construct a user interface that includes …
Learn to configure Spring boot application and Apache Kafka Producer, and Consumer, handle Kafka errors and retry in case of failures.
Learn the core concepts of configuring role-based authorization in Spring Security 6 and implementing authorization in a Spring Boot application.
Learn to design and implement a Spring Boot REST API that accepts long-running tasks and publishes the execution progress to a Kafka topic.
Spring @KafkaListener and @KafkaHandler annotations provide convenient ways to consume and handle messages from Kafka topics.
Learn to configure KafkaAdmin with custom properties, and create new topics in the Kafka cluster using AdminClient.createTopics() with example.
Learn the basics of KafkaTemplate, configure KafkaTemplate with custom properties, and configure producer and consumer factories with examples.
Learn to call OpenAI ChatGPT APIs in Spring Boot RestTemplate or WebClient with an example. Also, log the requests and responses for debugging.
Learn to use Redis Streams in a Spring Boot application to implement simple, in-memory and real-time stream processing of messages/events.
Learn to use Spring boot docker compose module, customize the compose file and container lifecycle with an example.
Learn to connect to Redis from Spring Boot, customize default config and perform cache operations using StringRedisTemplate / RedisTemplate.
Learn to use Redis Pub/Sub with Spring Boot Data, and configure the message publishers and subscribers (listners) for a given channel topic.
Learn to use integrate DynamoDB using Spring-cloud-aws module and its DynamoDbTemplate and DynamoDbEnhancedClient beans with examples.
Step by step, we will learn to deploy a Spring Boot application to AWS Elastic Beanstalk which uses RDS for persisting the records in the database.
By combining the portability and flexibility of Docker containers with AWS’s reliable and scalable infrastructure, we can take our Spring Boot applications to new heights. In this comprehensive guide, we’ll show exactly how to deploy a Dockerized Spring Boot app to AWS ECS from start to finish. 1. Introduction to …
Learn to configure bulkhead and rate limiting using Resilience4j 2 in a Spring boot 3 application, and testing with Apache JMeter.
Learn to implement authentication with a user login and logout functionality using Vue.js and Spring Boot Security using JWT tokens.
Spring boot, by default, configures Jackson for parsing objects to JSON. We can use Jackson’s XML module or JAXB to configure the XML support.
Learn to execute SQL scripts to load data (e.g. import.sql, schema.sql or data.sql) during startup of a Spring boot application or tests.
Learn to integrate Spring Boot with MongoDB using the Spring Data MongoDB API and work with database using MongoTemplate and MongoRepository.
Learn to access DynamoDB from a Spring Boot app and perform CRUD, batch and transaction operations using DynamoDBMapper or JPA Repository.
Learn to create an application from scratch using REST APIs created with Spring boot and the user interface created with Vue.js. We will build a simple employee management application with Create, Read, Update, and Delete (CRUD) functionality. 1. Application Overview In the application, the home screen will present a list …
Deploying a Spring Boot application to Kubernetes can seem daunting at first, but with the right tools and knowledge, it can be a straightforward process. In this post, we will walk through the steps needed to deploy a dockerized Spring Boot application to Kubernetes (Minikube). 1. Prerequisites Before we begin, …
In this post, we will learn how to configure and manage multiple datasources using properties configuration and defining custom beans using Java annotations in Spring Boot. Note that this requirement differs from having separate datasource in test, dev and prod environments. Here, we are using multiple datasources in the same …
Learn the internal working of SpringBootServletInitializer and how to use it to deploy a Spring Boot application to an external server.
Learn to configure and use different DataSource in different environments (test, development, production etc.) using the Spring profile specific properties files, as well as Java configuration in a Spring boot application. 1. Introduction A production grade application is deployed and tested in different environments before finally released to the end-user. …
Learn to perform integration testing using Testcontainers and JUnit 5 in a Spring boot application, including creating a @ServiceConnection.
Learn to use Spring PartEvent API for streaming multipart requests to a webflux controller and handle the form parameters and file contents.
Learn to configure and deploy a Spring Boot application as a traditional .war file into an external tomcat application server.
Since version 6, Spring supports creating an RSocket service as a Java interface with @RSocketExchange annotated methods for TCP exchanges.
Learn the RSocket protocol and implement communication models in Spring boot using reactive types such as Mono and Flux with examples.
Learn to configure MyBatis with Spring Boot 3 and configure @Mapper and DataSource. Also, learn mapper scanning with @MapperScan with example.
HowToDoInJava provides tutorials and how-to guides on Java and related technologies.
It also shares the best practices, algorithms & solutions and frequently asked interview questions.