Author: Editorial Team
-
Add and display images in React application
1. Introduction In a React application we often have to use images. In this tutorial, we’ll see how to add and display images in React application. 2. Adding images from file location Suppose the images are stored in the src > images folder. An image can be imported in the component and used in the…
-
Reading configurations from the filesystem location of Spring Cloud Config Server
1. Introduction In the previous tutorial, we discussed how to read properties from Spring Cloud Config Server using Spring Cloud Config Client. In that example, we kept configurations in the classpath. In this tutorial, we’ll discuss reading configurations from the filesystem of the server. Storing configurations in the filesystem is usually not used in production…
-
Read properties from Spring Cloud Config Server Using Spring Cloud Config Client
1. Introduction to Spring Boot Config Client In this tutorial, we’ll discuss the Spring Cloud Config Client and will explore how to read properties from Spring Cloud Config Server. In the previous tutorial, we created a Spring Cloud Config Server. Once the Spring Cloud Config Server is created, the Spring Boot application can access these…
-
Reading configurations from the class path location of Spring Cloud Config Server
1. Introduction In this tutorial, we’ll learn how to read configurations from the class path location of Spring Cloud Config Server. Spring Cloud Config Server provides an HTTP resource-based API for external configuration (name-value pairs or equivalent YAML content). The server is embeddable in a Spring Boot application, by using the @EnableConfigServer annotation. By default, the Config…
-
An Introduction to Spring Cloud Config
Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system.
-
Cloud-native applications and 15-Factor methodology
1. Introduction You must have heard the term Cloud-native applications. In this article, we’ll discuss this term and 15-factor methodology. Cloud native technologies empower organizations to build and run scalable applications in modern, dynamic environments such as public, private, and hybrid clouds. Containers, service meshes, microservices, immutable infrastructure, and declarative APIs exemplify this approach. Cloud…
-
Generate and run Docker image of Spring Boot application
1. Introduction In this tutorial, we’ll create a Docker image of a Spring Boot application. We’ll then see how to run the generated Docker image. The Spring Boot application will be a simple “Hello World” application. We’ll create multiple containers from the image and will access the Spring Boot application from outside the container. 2.…
-
What are Microservices?
1. Introduction Microservices is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, built around business capabilities and independently deployable by fully automated deployment machinery. From an article by James Lewis and Martin Fowler Microservices enable you to break monolithic…
-
Java 9 SafeVarargs Annotation Enhancements
1. Introduction In this article, we’ll discuss the SafeVarargs annotation enhancement in Java 9. Before discussing that, we’ll discuss briefly about the @SafeVarargs annotation. From Java 9 onwards, you can also use @SafeVarargs annotation for private instance methods also. 2. @SafeVarargs Annotation If you use var-arg methods with generic type then at runtime if one…
-
Java 9 Diamond operator enhancement for anonymous class
1. Introduction From Java 9, Diamond operator can be used for anonymous classes. Until Java 8, you could not apply diamond operator for anonymous generic classes. To understand what this statement means, we’ll first discuss the usage of diamond operator before Java 9. And then the enhancement in Java 9. 2. Java 7 diamond operator…
