This tutorial will teach you how to configure your Spring Boot application to log messages to a file. Specify File Path To make your application log messages to a file, you will need to configure a couple of new properties in the application.properties file. logging.file.path=/path/to/a/file logging.file.name=log.txt You might also need to enable a specific logging level…
Read More Log to File in Spring Boot
In this tutorial, I will share how to generate a self-signed certificate and enable HTTPS/SSL support in a Spring Boot application. You will also learn how to configure the RestTemplate HTTP client to use the same self-signed certificate to communicate with your Web Service over HTTPS. Let’s start by generating a self-signed certificate. Generate Self-Signed…
Read More Enable HTTPs/SSL in Spring Boot App
In this Spring Boot tutorial, you will learn how to get the details of the currently authenticated principal user. There is more than one way to get currently authenticated user details and in this blog post, I am going to share with you a few. Most likely you already have Spring Security configured for your…
Read More Spring Security. Get Authenticated Principal Details.
Below is the list of tutorials that should help you learn how to create a basic configuration and start with different Spring Cloud services. For step-by-step video lessons that teach from the very beginning how to create RESTful Microservices and make them work with Spring Cloud services, please check this page Spring Boot Microservices and…
Read More Microservices and Spring Cloud. Tutorials for Beginners.
In this tutorial, I will share with you how to secure Spring Cloud Eureka dashboard with Spring Security. To learn how to build RESTful Microservices with Spring Cloud by watching step-by-step video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Add Spring Security to Eureka To secure Eureka with Spring Security, we will…
Read More Secure Eureka Dashboard with Spring Security
This tutorial will teach you how to use Spring Cloud Sleuth with Zipkin to trace HTTP requests across your Microservices. Using Spring Cloud Sleuth and Zipkin, you can aggregate in one place the information about HTTP requests that your Microservices sent and the time it took for the HTTP Request to complete. This will help…
Read More Spring Cloud Sleuth and Zipkin
In this tutorial, you will learn how to use Declarative REST Client Feign to make HTTP Requests RESTful Web Services. You can use Feign client to make HTTP Requests to a registered with Eureka Discovery Service Microservice or to an external RESTful Web Service. For a step-by-step series of video lessons, please check this page:…
Read More Spring Feign Client HTTP Request Example
In this tutorial, you will learn how to start up your own Spring Cloud API Gateway and how to make it route HTTP Requests sent to a registered with Eureka Discovery Server Microservice. I will also show you how to register more than one Spring Boot Microservice with Eureka and how to configure your Spring…
Read More Spring Cloud API Gateway Tutorial
This tutorial will teach you how to build a Spring Boot application and access data in a MongoDB database using the MongoTemplate APIs. For MongoDB, we will use mLab, which provides MongoDB Database as a Service platform so that you don’t even have to install a MongoDB database on your computer. Also, at the end…
Read More Spring Boot and MongoTemplate Tutorial with MongoDB
For a complete step-by-step video course check this page: RESTful Web Services, Java, Spring Boot, Spring MVC, and JPA To learn how to build RESTful Microservices with Spring Cloud by watching step-by-step video lessons, please check this page: Spring Boot Microservices and Spring Cloud. What is Spring Framework? Introduction to Spring Boot, Create a Simple Web Service…
Read More RESTful Web Services with Spring Boot REST
When building RESTful web services with Spring Boot, we have two options for deployment. We can package our Spring Boot app as an executable JAR file and run it with the built-in Tomcat, or we can create a deployable WAR file and then deploy it into a standalone Tomcat or Jetty. In this blog post,…
Read More Spring Boot: Deployable WAR File
Welcome to a Docker Tutorials page! Here, you will find a collection of tutorials that will guide you through the basics of Docker and help you become proficient in containerization. Whether you’re a developer, an IT professional, or a system administrator, these tutorials will equip you with the knowledge and skills you need to manage…
Read More Docker Tutorials
In this tutorial, you will learn how to generate a custom JSON Web Token(JWT) and how to add and validate custom JWT Claims using the io.jsonwebtoken library. The JWT token generated in this tutorial will be signed with a SecretKey, making it secure and tamper-proof. Also, this tutorial assumes you have prior knowledge of creating…
Read More Generate JWT. Add and Validate Custom Claims.
In this tutorial, you will learn how to setup Eureka Cluster on your local computer. Although in this tutorial, I am going to setup Eureka Cluster on my local computer, you will still learn what you need to do to make Eureka run on remote server as well. What is Eureka Server Cluster? A Eureka…
Read More Eureka Server Cluster Setup Tutorial
Welcome to this tutorial where I will explain Docker, a platform that simplifies building, shipping, and running applications using containers. In this tutorial, you will learn about the benefits of using Docker containers and how to install Docker on your computer. Whether you are new to Docker or looking to learn more, I will guide…
Read More Docker for Beginners: An Introduction to Docker, Images, and Containers