Every Java Developer come across the terms Java Bean, Bean Class & Spring Bean. Most of the times people think that all are the same and used interchangeably. Even sometimes people consider them as a simple POJO class. In fact, these all have some logical differences. There are some set of standards & guidelines provided by Programmers that make them different from each other. In this article 'What is Spring Bean?', we will start with the fundamentals which are also essential to know, then we will discuss the Spring Bean with examples. Please note that if you define a class that doesn't follow the guidelines of being a Spring Bean, the Java compiler will never complain you. In contrast, the Spring
New Features In Spring Framework 6
Spring Framework 6, released on November 2022, is the major version change and containing many upgraded features and changes into the Spring development environment. On the other hand, Spring Boot 3 also released on November 2022, is based on Spring Framework 6, also changes a lot of things. We need to know about the changes in new versions in order to make smooth development of an application in the future. In this article, we will discuss about ‘New Features in Spring Framework 6’. Spring Boot 3.0 is also the first Spring Boot GA release to support Spring Framework 6.0. As a developer, we need to be aware of these updates in order to work smoothly with Spring Framework. Undoubtedly, one of
How To Migrate Spring Boot 2 To Spring Boot 3
After going through the major highlights of 'New Features in Spring Boot 3.0, it's time to check the process of 'How To Migrate Spring Boot 2 To Spring Boot 3'. Here in this article we will be talking about the step by step migration process to Spring Boot 3. Before getting ready to the migration process, it always minimizes the risk factor if you go through any documentation and understand the important artifacts on the same. Let's start discussing 'How To Migrate Spring Boot 2 To Spring Boot 3'. How To Migrate Spring Boot 2 To Spring Boot 3? Let's go through step by step and migrate your Spring Boot project To Spring Boot3.0 from Spring Boot 2.0. Step#1: Install JDK 17 in
New Features in Spring Boot 3 and Spring 6
Spring Boot 3.0 is officially released in November, 2022 with some new features and improvements. This is the first major release of Spring Boot after the release of Spring Boot 2.0 around 4.5 years ago. It is also the first Spring Boot GA release to support Spring Framework 6.0. As a developer, we need to be aware of these updates in order to work smoothly with Spring Boot. Undoubtedly, one of the biggest turn in the new release was the dropping of support for older versions of Java. In this article, we will discuss about 'New Features in Spring Boot 3 and Spring 6'. What are the major highlights of the Spring 3.0 Release? The highlights of the Spring 3.0 Release incorporate:
Spring Security UserDetailsService Using Spring Boot 3
In continuation to series of articles on Spring Security, here in this article we will learn 'How to implement Security in Spring Boot using UserDetailsService With Spring Boot 3?'. After going through the previous articles, I hope we all are very familiar with basics of Security and even the basics of Security in a Spring Boot application. After the release of Spring Boot 3, here we are going to implement 'Spring Security UserDetailsService Using Spring Boot 3'. In this article, we will create a user registration form and save users with their roles in the database. Then, based on the user role, we will check the authentication and authorization functionalities with the help of predefined UserDetailsService. To illustrate, we will take some
JavaScript vs Angular JS
Undoubtedly, JavaScript is one of the most popular programming languages in the world. Millions of developers use JavaScript to create web applications and even mobile applications. But what about Angular JS? Angular JS is a JavaScript framework that was created by Google. We primarily use it for developing front-end and creating single-page web applications. Therefore, a question comes in the mind, which one should we use? JavaScript or Angular JS? In this article 'JavaScript vs Angular JS', we will compare these two technologies and see their differences. Once you go through the complete article, you will also be able to make a decision which one to use as per your requirement. Needless to say, both technologies are very popular in terms
Spring Security LDAP Authentication Example
If you have ever implemented login feature in a production grade application, you must have heard about the LDAP authentication. LDAP can be used in any type of the hierarchical directory information. The most popular use of LDAP is to store an organizational data. Needless to say, a typical organization generally has directors, managers, supervisors and other positions. In other words, these are the hierarchical data where LDAP mechanism is perfect to implement. In this way, most of the organizations use it to maintain the organizational information including their credentials. Hence, we will discuss Spring Security LDAP Authentication Example in this article. What is LDAP? LDAP stands for Lightweight Directory Access Protocol. It is an open, vendor-neutral, industry standard application protocol to
Java Security Tutorial 2022-A Guide To Create SSL Connection
In this tutorial, we'll discuss about SSL (Secured Socket Layer) and investigate the different ways to implement it in Java Applications. If you are looking to secure your Java applications, here is everything you need to know about establishing a secure SSL connection for your applications. In this article 'Java Security Tutorial 2022-A Guide to Create SSL Connection', we are going to discuss about how to secure your Java Applications with SSL in detail. Why are Secure SSL Connections so Important? The Java programming language offers type-safe and automatic garbage collection features, improving security. It inherently provides secure class loading and verification mechanism, which only allows the execution of legitimate Java code. The Java security architecture includes different APIs, tools, encryption algorithms,
Spring Data Elasticsearch CRUD Examples Using Spring Boot
In this article, we will learn how to develop 'Spring Data Elasticsearch CRUD Examples Using Spring Boot'. We will start with the basics of Elasticseach as a theoretical part. In practical part we are going to discuss how to setup Elasticsearch in our system and make it ready to work. Then, we will move to the development of our example. Apart from CRUD operation with UI, we will also get into 'How to create a REST API using Spring Boot and Elasticsearch. What is Elasticsearch? Elasticsearch offers you to store, search, and analyze large amounts of structured and unstructured data. It primarily works on the concept of indexing. Since it also capable of storing large amounts of structured and unstructured data, it
How To Sort the List in Java 8
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