Home » Spring Boot » Page 2

Tag Archives: Spring Boot

Using Testcontainers in Spring Boot Tests For Database Integration Tests

spring-interview-questions-answers

In this blog post I’d like to demonstrate how I integrate Testcontainers in Spring Boot tests for running integration tests with a database. I’m not using Testcontainers’ Spring Boot modules. How it works with them, I will show in a separate blog post. All samples can be found on GitHub. Why Testcontainers? Testcontainers is a library that helps to integrate infrastructure ...

Read More »

Deep Learning with Spring Boot and DJL

spring-interview-questions-answers

Overview This is another post on Spring Boot that will show how to build a sample web application using Deep Java Library (DJL), an open-source Deep Learning library for Java to diagnose COVID-19 on X-ray images. The sample app is a Spring Boot based version of DJL’s similar COVID-19 example and it has a simple static HTML page built using Twitter Bootstrap and JQuery where users ...

Read More »

Packaging a React App with Spring Boot

1. Introduction This is an in-depth article related to building a react app with Spring Boot. Spring Boot framework has features related to creating web based applications. The framework has utilities and annotations to create REST based services. 2. Spring Boot – React App 2.1 Prerequisites Java 8 or 9 is required on the linux, windows or mac operating system. ...

Read More »

Spring Boot and Micrometer with Prometheus Part 5: Spinning up prometheus

spring-interview-questions-answers

Previously we got our Spring Boot Application adapter in order to expose the endpoints for prometheus.This blog will focus on setting up prometheus and configure it in order to server the Spring Boot Endpoints.So let’s get started by spinning up the prometheus server using docker. Before proceeding on spinning up prometheus we need to supply a configuration file to pull ...

Read More »

Spring Boot Remove Embedded Tomcat Server, Enable Jetty Server

spring-interview-questions-answers

A quick guide to exclude embedded tomcat server in spring boot application and adding Jetty Server Instead. Configuration to remove tomcat and add Jetty Server. 1. Introduction In this tutorial, We’ll learn how to remove the Tomcat server from the Spring Boot application. Actually, Spring boot by default comes up with the embedded server once we add “spring-boot-starter-web” dependency. But, ...

Read More »

Spring Boot tests with Testcontainers and PostgreSQL, MySQL or MariaDB

Testcontainers is a Java library that allows integrating Docker containers in JUnit tests with ease. In a Containerized World, there is little sense to complicate the tests configuration with embedded databases and services. Instead, use run your services in Docker and let the Testcontainers manage this for you. In this blog post you will learn how to configure Testcontainers to ...

Read More »