Search results for: Spring Cloud Config

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.

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

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

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

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.

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