If you are a Spring Boot developer, you must have come across the 'application.properties' or 'application.yml' file. Needless to say, these files reduces your development effort by minimizing the amount of XMLs that you were writing in a standard Spring project. Moreover, we accommodate the common properties of our project in the form of key-value pairs in these files. Therefore, it becomes more than important to know all about these files. These are application properties file with the extension of either '.properties' or '.yml'. Hence, our topic for this article is 'How to Write Spring Boot Application Properties Files'. Furthermore, Spring Boot already provides some of the ready-made keys that we use most of the times in our project. Sometimes, we
How To Implement Spring Cloud Config Server In Microservices
In a Microservices architecture based Java application, we have multiple microservices in the form of multiple Spring Boot applications. Each Spring Boot application will have its separate configuration file, where we specify the values in the form of key - value pairs. If you used maven in your application, you must have guessed that we are talking about nothing but application.properties file. You might have noticed that some of the entries in each application's application.properties file are common, such as registering with Eureka server, Email, Security, JPA configurations etc. If we can keep these common entries in one central place and make them accessible by each application, it will make our development easier. Therefore, How can we make a central
How To Implement Spring Cloud Gateway In Microservices
Microservices architecture offers us to deploy multiple services in different servers(hosts) in a private network. When a client request comes to microservices, it should get authenticated before the processing of request. Suppose we have 100 different services in a microservices based application. If client wants to interact with all of them, it will have to pass authentication 100 times. Reducing these many number of calls is one of the reasons to learn 'How To Implement Spring Cloud Gateway In Microservices'. If we have one service which takes care of authentication and also forward the request to concerned service, clients can get the response faster. Yes! We have such type of service which is responsible to do the same. It is nothing
How to Design a Java Enterprise Application Effectively?
This article is intended to experienced Java EE developers who desire to become the Architects of Enterprise applications in Java. It is also useful to the developers, designers, architects who want to create effective blueprints of applications. The title "How to Design a Java Enterprise Application Effectively?" will cover a lot of new demands with faster delivery in an enterprise application as moving fast is one of the most important criteria of today's IT companies. Moreover, we will discuss some best practices to design an enterprise application that suits the current demands. We will also cover the design comparison of Monolith with Microservices based application. Motivation to adapt Design as per Modern Applications Adapting design as per modern applications is all about quickly
MCQ on Spring and Hibernate
Details on this page are a little bit different than at other pages. Rather than going through some theoretical or practical way of learning Spring & Hibernate frameworks, we will test our understanding of Spring & hibernate via solving multiple choice questions (MCQs). In this page, we will talk about 'MCQ on Spring and Hibernate'. Answer & Explanation of each question are given at the bottom of this page. You will find these questions for the first time on the web as they are created after putting a strong effort. You may also find these questions in some other websites/blogs after publishing this page. Someone who likes the questions & interested in copying the questions can just provide a reference of this
Spring Boot Cassandra CRUD Examples
In continuation to Cassandra DB installation, now in this article we will learn the most important DB operations. If we are in Software development world, we should at least know ‘How to write CRUD operation on the database front’. Needless to say, how much importance these operations have in an application development. If you are developing any web application in any programming language, you can’t escape from these operations. CRUD is nothing but an abbreviation to Create, Read, Update and Delete. Moreover, development of CRUD operations is expected from all developers. We will learn ‘Spring Boot Cassandra CRUD Examples’ in this article. Software/Technologies Used in the Examples Sometimes some version conflicts with other version. Hence, listing down the combinations that are proven
How to install Cassandra DB on Windows?
In this article, we are going to learn 'How to install Cassandra DB on Windows?' in simple steps. The Installation process of Cassandra DB is a bit tricky as compared to other database software. Needless to mention, Cassandra is a NoSQL DB and it is known for high performance. How to install Cassandra DB on Windows? We will discuss the process of installing Cassandra in our local system here in this section. There are three mandatory software that we should have in our system in order to take complete benefit of the Cassandra DB. These are: 1) JDK 8+ 2) Python 2.7+ 3) Apache Cassandra 3+ Apart from that, we should have some special settings in order to stat Cassandra smoothly in our system. We will
Spring Boot Features
After knowing about 'What is Spring Boot?' in detail in a separate article, it's time to talk about the features of Spring Boot. Needless to say, Spring Boot is full of features, that's why it is being used in the majority of Java projects now-a-days. In this article, we are going to discuss Spring Boot Features in detail. If you are attending any interview of Java/Spring Boot, there are high chances that you may be asked to tell some important features of Spring Boot. Spring-Boot comes with a lot of handy features that make the developer's life easier. Below are some of the important Spring Boot Features. CommandLineRunner CommandLineRunner is a very handy Spring Boot Features while testing a functionality just like the thread's
Java Design Patterns
If you want to learn 'Java Design Patterns' in less time without missing any concept, you are at the right place. Moreover, if you want to appear in a Java interview, go through this article once. Additionally, If you want to have a quick revision of your concepts on Java Design Patterns which you had learnt a log time before, then also you are at the right place. However, if you are looking for one liner definition of each Design Pattern to memorize them, then also you are at the right place. Then, visit the last section of this article (Design Pattern's Cheat Sheet). In this article, we will discuss about all GoF (Gang of Four) design patterns. The 23 design
Apache Excel POI Utils : A Java Excel API
Apache Excel POI Utils : A Java Excel API (No need to create row or cell each time) What is Apache POI ? Why is it so popular to utilize? Apache POI is an open source Java API. It allows developers to create, modify, and display MS Office files using Java programs. Also, Apache POI is developed by Apache Software Foundation to operate on Microsoft Office files as a Java program. Furthermore, It is the most popular API and up to date to work with newer versions of MS Office files. On the other hand, some other available APIs are JEXCEL, JXLS, FILLO, APACHE COMMONS CSV etc. However, Apache POI provides stream-based processing which is suitable for large files & requires less memory.