Every Java developer should be aware of the importance of the Collection in Java. Needless to say, you can't develop a project without using the Collections. Even Java community also assumes that Collection in Java is the most important topic after Java language basics and OOPs Concepts. What is Collection In Java? Collection in Java is an object which itself contains other objects without size limitations. The contained objects can be homogeneous, heterogeneous, unique or duplicate. Homogeneous objects are those who created from the same class. For example, Suppose we created some objects S1, S2, S3, S4 from the class Student. They will come under the category of homogeneous objects. On the other hand, if we create different objects from different classes,
Spring Scheduling Cron Expression
When we have a requirement where we need to run a task/job repeatedly after a particular time interval, we achieve this functionality by implementing Scheduling. For Java developers, Spring Framework makes it simple by offering Spring Scheduler. Moreover, Cron Expressions are the most widely used approach to achieve scheduling. Cron Expressions are very popular in Unix/Linux OS for scheduling. Spring framework also incorporates the same concept internally. Spring Framework offers us an API where we can utilize Cron expression to get the task scheduled. This article about 'Spring Scheduling Cron Expression' includes all the new improvements in Cron Expressions in Spring 5.3. However, there are some other approaches to get our task scheduled using Spring/Spring Boot, but here in this article
What is Spring Bean
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,