Java 17 Features Core Java java Java 17 jdk 17 by devs5003 - April 13, 2024April 15, 20240 Undoubtedly, the demand of Java 17 features became crucial after the release of Spring Boot 3.0. Needless to say, the use of Java 17 has become mandatory since Spring Boot 3.0. It also means that every Java developer should be aware of the new changes introduced in Java 17. Java 17 comes with several new features and enhancements that aim to improve developer productivity and program efficiency. In this article, we will explore some of the most significant Java 17 features, with code examples to help you understand how to use them effectively. Java 17 is an LTS (Long-term support) release of the Java programming language. As it is an LTS version, it will receive prolonged support and security updates for
Profiles In Spring Boot java Spring Spring Boot by devs5003 - April 10, 2024April 11, 20243 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
Entity Relationship in JPA/Hibernate/ORM java Entity Relationship Hibernate Spring Data JPA by devs5003 - April 8, 2024April 12, 20240 Needless to say, ORM (Object Relational Mapping) concept has made the developers life easier. Developers don't need to do much work in order to map two tables in the database. If we need to maintain a relationship between two tables, utilization of an annotation in our entity/class is more than sufficient. Further, we don't need to design the DB tables. However, developers need to have a better understanding of the usage of the annotations that create a relationship between two tables. Here in this article 'Entity Relationship in JPA/Hibernate/ORM', we will discuss about the different types of relations between tables that are relevant in ORM concept. Let's start discussing our topic ‘Entity Relationship in JPA/Hibernate/ORM’ and its related concepts. Some of the
Types Of NoSQL Databases and Examples Database NoSQL by devs5003 - April 1, 2024April 11, 20242 As a Java developer, we can’t develop an insightful application without the use of a database software. Traditionally, we use a relational database to work with an application. Of course, a relational database is a structured database and contains multiple tables to maintain meaningful relations between them. Additionally, it uses SQL like queries to operate with data stored in the tables. In contrast, suppose we have to work with a large amount of unstructured data which is not advantageous to store in the form of tables, keeping other factors in mind as well, then how will we store our data? The simple answer is ‘we should use NoSQL database’ in that case. Further, you might even have some other questions in
Java 22 New Features With Examples Core Java java Java 22 by devs5003 - March 31, 2024April 7, 20240 Java Development Kit 22, the next version of Java Standard Edition, is now available as a production release on March 19, 2024. Java 22 comes with 12 significant features including seven preview features and one incubator feature. It is inclined to improve developer productivity and program efficiency. In this article, we will explore some of the most essential developer’s friendly Java 22 new features with examples. Java 22 New Features With Examples Let's start going through Java 22 New Features with examples one by one. Unnamed Variables & Patterns (JEP 456) This was introduced in Java 21 as a preview feature under the name "Unnamed Patterns and Variables", and now it is finalized in Java22 as "Unnamed Variables & Patterns" without any changes. Many a
Method Reference in Java 8 [::] Java 8 Core Java java by devs5003 - March 20, 2024March 21, 20242 Method Reference is a wonderful feature introduced in Java 8. Apart from taking advantage of functional programming, one of the biggest advantages in using a Lambda expression is to minimize the lines of code. Similarly, Method Reference in Java 8 [::] also minimizes lines of code even more than Lambda. However, we use both of them in the presence of functional interfaces only. Moreover, It is also a concise and simpler form of lambda expression. In this article, we will also learn how to change a Lambda expression into a method reference. Let's start discussing about 'Method Reference in Java 8 [::]' and it's related concepts.​ What is Method Reference(::)? As we have seen in Lambda expression topic that we use lambda
How to implement Spring Boot Thymeleaf Security Login Example? Spring Boot java Spring by shwetas8536 - March 17, 2024March 20, 202428 In continuation to previous article on two different ways of implementing Spring Security, here in this article we will learn the third way 'How to implement Spring Boot Thymeleaf Security Login Example using UserDetailsService?'. After going through the previous article, I hope we all are very familiar with basics of Security and even the basics of Security in a Spring Boot application. This time we will create a user registration form and save users with their roles into database. Then, based on the user role, we will check the authentication and authorization functionalities with the help of predefined UserDetailsService. If you are looking for 'How to implement Security in Spring Boot using UserDetailsService with Spring Boot 3 onward?, kindly visit a
How to implement JWT Authentication in Spring Boot Project? Spring Boot java Spring Spring Boot 3 Spring Security by shwetas8536 - March 15, 2024March 17, 202410 No one can deny from the fact that Security is a vital feature of a production ready application. Although we can secure one web application using In-memory authentication, JDBC Authentication or via UserDetailsService. But when one application uses the services of other application internally, then implementation of security with webservices concept becomes important. In this situation we secure our application using a token which has a particular period of validity. In this article, we are going to learn 'How to implement JWT Authentication in Spring Boot Project?' to understand the concept behind JWT(JSON Web Token) Authentication as a whole. As JWT stands for 'JSON Web Token', it is clear that the token holds the data in the form of JSON only. Moreover,
Improvements In Java Collection API Collections Core Java java by devs5003 - March 10, 2024March 11, 20240 In this article "Improvements in Java Collection API" we will learn about the origin of classes in different versions of jdk. Also, If any new class or interface introduced, what was the purpose of introducing that? What was the weakness of previous version of it? Why the new class/interface introduced? What all new features introduced in Collection classes/interfaces? and so on. We are going to discuss about these kinds of questions in this article accordingly. In fact, we will learn about Enhancement of java collection classes step by step & also version by version simultaneously. Primarily, we will focus on Java collection features in JDK 1.0, 1.2, 1.4, 1.5, 1.6 and 1.8, 9 10, 11, 21 respectively. Improvements in Java Collection
How to read Excel file in Java Spring Boot and upload into Database? java Excel Spring Boot by devs5003 - March 9, 2024March 12, 20248 Many clients provide their data in the form of excel sheet and request developer to save it in your database as it is. If you ever have implemented ‘How to read Excel file in Java Spring Boot and upload into Database?’, it’s good. If not, no worries!, we will learn the same in this article. In the end, you will find it very easy & fast way to get it done. In fact, once you go through the complete article you will observe that you only need to provide the location of your excel file in application.properties file. You will get the data uploaded into database by making small changes in your own entity classes only. We will not promote