During project development, every developer come across a situation where implementation of sorting becomes mandatory. There are many flavors of sorting. It depends on the scenario which one to implement where. In this article, we have mainly focused on sorting using Java 8. Moreover, we have also provided an example which was being used before the introduction of Java 8. Hence our article is on 'How To Sort the List in Java 8'. There are multiple ways to sort a list of items already available before Java8. Further, Java8 has introduced different ways to make sorting/comparison easy. Let's get into our topic 'How To Sort the List in Java 8'. Let's assume that we have a POJO class Employee as below for
java
WebClient in Spring Boot
A typical modern web application generally has four well known layers i.e. Presentation Layer, Service Layer and Data Layer, and an Integration Layer. The Integration layer generally works with the web services concept and connects two different applications to exchange data between them. One application refers to producer/provider, whereas other refers to consumers. Here, we will discuss about REST consumer/client API using WebClient in Spring Boot. The traditional way of implementing REST client API is by using RestTemplate. However, we have already gone through the RestTemplate in another article where we had developed different operations to consume REST API. Now, we must have a question in mind ‘How to write REST Consumer API using WebClient in Spring Boot?’. Needless to say, WebClient
How To Add JDK 19 Support In Eclipse
Eclipse not recognizing Java-19, How to add JDK 19 support in Eclipse 2022-09?, jdk19 IDE , jdk18 eclipse, eclipse jdk19, eclipse java 19, java 19 eclipse, eclipse java 19 support, eclipse for java 19, JDK 19 support in Eclipse 2022-09 - java, add java 19 to eclipse, how to add java 19 to eclipse, eclipse openjdk 19, eclipse java 19 plugin, eclipse support java 19, jdk 19 eclipse, eclipse compiler compliance level 19 not available, sts java 19, add jdk 19 to eclipse, how to add jdk 19 in eclipse Oracle has released JDK 19 (the tenth six-month release) in September 2022 and it's general availability date is 2022/09/20. JDK 19 will be a short-term feature release that is supported for
How To Deploy Spring Boot Application To Heroku
The development of a software application goes through multiple stages like: requirement analysis, designing, coding, testing. Once testing is completed successfully, we need to deploy the application somewhere in a server so that users can access it from anywhere. Generally, we deploy the application in the Cloud environment. Heroku is the cloud environment that provides us deployable infrastructure. So, our topic of discussion in this article is 'How To Deploy Spring Boot Application to Heroku'? Spring Boot’s flexible packaging options provide a great deal of choice when it comes to deploying your application. You can deploy Spring Boot applications to a variety of cloud platforms, to virtual/real machines, or make them fully executable for Unix systems. Here in this article we
Profiles In Spring Boot
When we work on a real time project, we maintain multiple environment for the same project. This happens because we use different infrastructures for different stages of the project. There are different useful environments that we maintain before making the project go live, such as: development (dev), test, user acceptance testing (uat), production (prod). These environments are not fixed at all. Some projects may have some more environments or even sometimes less also. It totally depends on the decisions made by stakeholders involved in the specific project and its requirements. Spring Framework offers us to maintain a separate profile for each environment in order to switch over the environments with a minimal effort. Hence, our topic of discussion is 'Profiles In
Spring Bean Life Cycle Method Examples
In the context of Spring Framework, if we want to execute some code after the bean construction, then we can write that code inside the custom init() method. Similarly, if we want to execute some code just before the destruction of the bean, we can write that code inside destroy() method. These methods are called Spring Bean Life Cycle Methods. Here in this article we will develop 'Spring Bean Life Cycle Method Examples'. The bean life cycle is managed by the spring container. When we run the program, first of all, the spring container gets started. After that, the container creates the instance of a bean as per the request, and then the required dependencies are injected. At the end, the bean
Spring Core Tutorials
Once we start learning Spring Framework, we hear a term 'Spring Core'. Spring Core is nothing but an important and must know module of the Spring Framework. Without a deep learning of the Spring Core module, a developer shouldn't think of working on Spring Framework confidently. This article on 'Spring Core Tutorials' contains the must know artifacts for each developer who is going to work on Spring Framework based application. Let's discuss out topic 'Spring Core Tutorials' and related concepts in detail. What is Spring Container? Spring Container is itself a program in Spring Framework that manages the objects. The container gets its instructions by reading configuration metadata to instantiate, configure, and assemble the objects. We can represent configuration metadata in different forms,
Spring Dependency Injection
If you are working in a project where spring is being used, you must have heard about the term 'Spring Dependency Injection'. If not, this is the right time to dig into it as much as possible without further delay. Needless to say, Spring dependency Injection is the heart of the whole Spring Framework. I would also suggest you to go through the practical knowledge of it. However, it is also true that someone can't understand the concept of Spring Dependency Injection only having the theoretical knowledge. If you are expecting to learn all the basic and crucial concept behind the Spring Dependency Injection step by step, and if you don't want to revise the concept more than a hundred times
Microservices Interview Questions
If we talk about a job interview in Java technology, knowledge of Microservices is expected from a java developer now-a-days. Even if you don’t mention it in your resume, you will be asked a question 'Did you get any chance to work in Microservices?'. It happens because Microservices is gaining the importance day by day in developing a Java based Application. Apart from that, microservices is a trending architecture in the industry. Hence, sometime it becomes a ‘Must Know’ skill for a Java developer. Therefore, our topic for discussion is ‘Microservices Interview Questions & Answers’. In this article, we will talk about the most important interview questions on Microservices. If you are looking for detailed tutorials on Microservices, kindly visit our
Spring Transaction Annotations With Examples
In this article, we will discuss on 'Spring Transaction Annotations With Examples'. Obviously, all Spring transactions related annotations will also work with a Spring Boot Application. These annotations play a very important role while creating a web application in Spring Boot. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Transaction Annotations With Examples' here only. First of all, let's discuss some fundamentals on the term Transaction, and then move ahead to 'Spring Transaction Annotations With Examples'. What is a Transaction? Transactions regulate the modifications that we execute in one or more software systems. These software systems can be databases, message brokers etc.