Spring Dependency Injection java Spring Spring Boot Spring Core by devs5003 - April 18, 2024April 19, 20240 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
How to work with Apache Kafka in Spring Boot? Apache Kafka java Spring Boot by devs5003 - April 17, 2024April 18, 20248 Now-a-days, many modern systems require data to be processed for the targeted purpose as soon as it becomes available. For example, as a developer, if we talk about a Logging or Monitoring system, we often require the data as soon as a problem occurs. In a nutshell, there is a high requirement of faster & robust data delivery. Here, Apache Kafka can be a good option to solve our purpose. In a single line, Apache Kafka acts as a mediator to transmit data between applications that generate data and applications that consume data. Needless to say, we are going to discuss about 'How to work with Apache Kafka in Spring Boot?' here in this topic. If you want to know the
Profiles In Spring Boot java Spring Spring Boot by devs5003 - April 10, 2024April 11, 20244 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
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,
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
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
How to implement Fault Tolerance in Microservices using Resilience4j? Resilience4j java Microservices Spring Boot Spring Cloud by devs5003 - February 24, 2024February 27, 20246 When we develop an application, especially a Microservices-based applications, there are high chances that we experience some deviations while running it in real time. Sometimes, it could be slow response, network failures, REST call failures, failures due to the high number of requests and much more. In order to tolerate these kinds of suspected faults, we need to incorporate Fault Tolerance mechanism in our application. To achieve it, we will make use of Resilience4j library. Resilience4j is a lightweight, easy-to-use fault tolerance library inspired by Netflix Hystrix, but designed for Java 8 and functional programming. So, our focus in this article will be on 'How to implement Fault Tolerance in Microservices using Resilience4j?' After implementing the Fault Tolerance in Microservices using Resilience4j,
Spring Boot Cassandra CRUD Examples Cassandra java Spring Boot by devs5003 - February 23, 2024March 1, 20240 In continuation to Cassandra DB installation, now it's time to discuss about the most important CRUD operations using Cassandra DB. If we are in Software development world, we should at least know ‘How to write CRUD operation on the database front’. Needless to say, how much importance these operations have in an application development. If you are developing any web application in any programming language, you can’t escape from these operations. CRUD is nothing but an abbreviation to Create, Read, Update and Delete. Moreover, development of CRUD operations is expected from all developers. We will learn ‘Spring Boot Cassandra CRUD Examples’ in this article. Software/Technologies Used in the Examples Sometimes a specific version conflicts with another version. In order to avoid such
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