Spring Boot MVC CRUD Example java MVC Spring Spring Boot by devs5003 - August 8, 2024April 7, 20267 When we develop a Web Application using Spring Boot, the knowledge of MVC pattern becomes important. Needless to say, the MVC is a short form of Model, View and the Controller. Moreover, the Spring Boot makes a developer's life easier in developing the web application using MVC architecture. Spring Boot offers us a starter project 'Spring web' to work with MVC applications. In this article 'Spring Boot MVC CRUD Example', we are going to learn entire CRUD operations that are mandatory to develop any MVC application. It will also provide you the knowledge of complete flow of MVC starting from user interface till the data layer. We will make use of Thymeleaf and Bootstrap for view part and MySQL for database.
Spring Security LDAP Authentication Example java Security Spring Spring Boot by devs5003 - August 1, 2024November 7, 20251 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. 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. We will discuss Spring Security LDAP Authentication Example in this article. In Spring based applications, LDAP is used to integrate with LDAP directories and perform various directory-related operations, such as user authentication and authorization.
Spring Cloud Essentials java Microservices Spring Boot Spring Cloud by devs5003 - July 27, 2024October 15, 20240 Whether you are a beginner or an experienced or trying to become a developer in the near future, you must have at least heard about the term Microservices. Undoubtedly, if you are working on it, you must have already had a good experience with it. Moreover, you must also have observed that the term 'Spring Cloud' comes in between while talking about Microservices. Do you know, why so? If you know it's good. If not, let's spare some time going through this article thoroughly. In this article, apart from knowing what is Spring Cloud, you will also get to know what are the features, capabilities and other fundamental concepts of Spring Cloud that are expected from a Microservices developer. Let's start
How to implement AOP in Spring Boot Application? Spring Boot java Spring by shwetas8536 - July 3, 2024January 5, 20264 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
How to Generate Dynamic PDF Report using Spring Boot? Spring Boot java pdf by devs5003 - June 19, 2024May 1, 20255 Almost every client expects the report of data as it is in the database. The most popular & user-friendly reports are PDF & Excel. Here, in this article, we will learn how to generate dynamic PDF report. We will fetch all values from the database, no hard-coding will be done. Further to escape from hard-coding we will take some of the values from properties file. In this way we don't need to modify the java file in case we have some change requests in future. Let's get into the topic "How to Generate Dynamic PDF Report using Spring Boot?". Here we will use Spring Boot to generate our dynamic PDF. However, you can easily utilize the code from this example to
How to implement Redis Cache in Spring Boot? Redis java Spring Boot by devs5003 - May 24, 2024April 7, 20265 Many a time, we all come to a phase when our application does not perform well as it is expected to. Apart from several other solutions, we also look for a caching technique to make DB calls faster. In order to make it possible, we have Redis Cache technique in place. Redis cache helps us by minimizing the number of network calls while accessing the data from DB. Needless to say, our topic of discussion in this article is 'How to implement Redis Cache in Spring Boot Application?'. Spring Boot supports this feature via the dependency 'Spring Data Redis'. In addition, we need to download Redis Server to make Redis Cache functional in the Spring Boot Application. Moreover, apart from Cache,
Why is Spring framework so popular ? java Spring Spring Boot by devs5003 - May 21, 2024April 7, 20260 We have various frameworks in Java. Spring framework is most popular out of them. Some other commonly used frameworks are Struts, JSF, but Spring has already dominated all of them. Let's understand why is Spring framework so popular ?. At its core, the Spring Framework includes the principles of simplicity, modularity, and loose coupling. It provides developers with a unified programming model that simplifies the complexities of enterprise application development. With its popular dependency injection mechanism, Spring allows the creation of highly modular and testable code. It also makes developers free from the burden of managing complex dependencies manually. Before directly coming to 'Why is Spring Framework so Popular ?', let's first understand the basic terminology 'What is a Framework?'. What is
How to Implement Feign Client in Spring Boot Microservices? Feign Client java Microservices Spring Boot Spring Cloud by devs5003 - May 10, 2024November 11, 20259 When two web applications communicate with each other for data exchange, they work on Producer-Consumer technique. An application who produces data is known as a Producer/Provider application. Similarly the one who consumes data is known as Consumer application. As a Java developer, we might be very familiar with REST API for Producer application whereas RestTemplate for Consumer application. With Microservices based application also, two Microservices communicate with each other and follow the Producer-Consumer model. Here, in consumer side, we use a concept 'Feign Client' as a better option instead of RestTemplate in order to minimize our effort of coding. Therefore, our topic of discussion is 'How to Implement Feign Client in Spring Boot Microservices?'. Apart from consuming REST services in an
Java Scheduler: How to Schedule a Job in Java Spring Boot Scheduler Scheduling java Spring Spring Boot by devs5003 - April 26, 2024May 6, 202545 Sometimes we come across a situation when we expect a task should execute only at a particular point of time or re-execute within a particular time interval. Simultaneously, our client expects a functionality to be executed at a particular time on an hourly basis, daily basis, weekly basis, monthly basis or even some other as well. In fact, in all these types of situations we implement scheduling to get the requirements fulfilled accordingly. For example, one of the most popular implementation is the report generation at a particular time. On the other hand, almost every client expects this functionality to have in the project. Currently the most popular one is the PDF report. Consequently, our topic 'Java Scheduler: How to Schedule
Spring Dependency Injection java Spring Spring Boot Spring Core by devs5003 - April 18, 2024November 6, 20250 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