How to implement Spring Boot Thymeleaf Security Login Example? Spring Boot java Spring by shwetas8536 - March 17, 2024March 20, 202427 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,
Spring Data MongoDB Tutorial java MongoDB Spring Spring Boot by devs5003 - February 27, 2024February 28, 20240 In today's data-motivated world, it becomes very crucial to manage and query huge volumes of data efficiently for businesses to stay competitive. MongoDB, a popular NoSQL database, offers flexibility and scalability. On the other hand, Spring Data provides a powerful framework for simplifying data management in Java applications. The term 'Spring Data MongoDB' is nothing, but it is a combination of both 'Spring Data' and 'MongoDB'. In simple words, Spring Data MongoDB is a small readymade project provided by Spring community, that simplifies the process of how a Spring based application interacts with MongoDB, a NoSQL database. In this article, we will explore the world of Spring Data MongoDB, investigating its features, benefits, and practical examples to help you utilize its
Spring Batch Example CSV to MySQL: JPA Batch Insert java Spring Spring Batch Spring Boot by devs5003 - February 4, 2024February 15, 20241 Sometimes in real time projects, we need to transfer data from one location to another. If the volume of data is small, we can achieve this by applying any traditional approach. On the other hand, if there is a huge amount of data, we can make use of the Spring Batch API to make the transfer of data faster and performant. In this article 'Spring Batch Example CSV to MySQL Using JPA', we are going to transfer the data from CSV file to MySQL database using Spring Boot Batch. We have already discussed theoretical concepts of Spring Batch in a separate article 'Spring Batch Tutorial'. Now, its time to implement our example 'Spring Batch Example CSV to MySQL Using JPA'. What will
Spring Boot 3 Migration- Migrate Spring Boot 2 To Spring Boot 3 java Spring Spring Boot Spring Boot 3 by devs5003 - January 20, 2024March 13, 20243 After going through the major highlights of 'New Features in Spring Boot 3.0, it's time to check the process of Spring Boot 3 Migration ('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 into to the spring boot 3 migration process, you should go through any documentation to understand the important artifacts in the same. It always helps in minimizing any potential risk factor in the process. Let's start discussing 'How To Migrate Spring Boot 2 To Spring Boot 3'. Spring Boot 3 Migration: How To Migrate Spring Boot 2 To Spring Boot 3? Let's go through step by step
Spring Security UserDetailsService Using Spring Boot 3 java Security Spring Spring Boot Spring Boot 3 Spring Security by devs5003 - January 13, 2024March 15, 20243 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
Spring AI Reference ChatGPT java Spring Spring AI Spring Boot by devs5003 - December 20, 2023February 15, 20240 In the wave of generative Artificial intelligence, everyone wants to utilize the capability of AI tools to some extent. From this prospect, the Spring community stepped forward and offered a module called 'Spring AI' in order to interact with AI tools and get the desired outcomes. Spring AI intended to simplify the development of applications that integrate artificial intelligence functionality without unneeded complications. Spring AI offers abstractions that serve as the foundation for developing AI applications. These abstractions have multiple implementations, enabling easy component swapping with minimal code changes. For example, Spring AI introduces the ChatClient interface with implementations for OpenAI and Azure OpenAI. In this Spring AI reference guide, we will talk about how to add AI in our Spring
New Features in Spring Boot 3 and Spring 6 java jdk 17 Spring Spring Boot Spring Boot 3 by devs5003 - December 16, 2023January 31, 20240 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:
How to implement AOP in Spring Boot Application? Spring Boot java Spring by shwetas8536 - December 15, 2023February 10, 20242 If you are developing an application in Spring or using Spring Boot, you must have come across the word 'AOP'. It stands for Aspect Oriented programming. Although AOP concept is a bit tough to understand, but undoubtedly it makes the developer's life easy. You will feel it more than easy once you complete this topic 'How to implement AOP in Spring Boot Application?'. In fact terminologies used in AOP concept by definition are very close to each other that makes it a bit tricky to understand effortlessly. However, we will understand all of them with suitable examples respectively. While developing an application you might have observed that there are certain lines of code which appear in every class unknowingly. What will
Reactive Programming Spring Boot Tutorial Spring Boot java MongoDB Spring Spring Reactive Webflux by devs5003 - December 4, 2023February 27, 20243 Reactive Programming Spring Boot, Spring Boot Reactive, Reactive REST API, How to develop a Reactive Programming in Spring Boot?, Reactive Stack vs Servlet Stack, Spring Reactive Client with WebClient etc. In this article, we will discuss about ''How to develop a CRUD REST API using Reactive Programming Spring Boot?''. In other words, we will be talking about a new way of working in REST APIs which is Reactive Programming. No doubt, if we talk about the performance, this way is faster than the traditional way of developing REST. Moreover, Reactive Programming offers us to utilize application resources optimally. We will also discuss how to work with the concept of Spring WebFlux as the part of Reactive Programming and the related concepts