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
Spring MCQ with Answers Explained Part-2 java Lombok MCQ Spring by devs5003 - June 12, 2024August 4, 20250 If you are a Java developer, you are expected to have a good understanding of Spring Framework Concepts, both conceptual part & programming part as well. However, Spring Boot is the popular framework in the industry. Spring Boot is built on top of Spring Framework itself. If you have a good hold on the Spring Framework, you will easily understand Spring Boot and work on it smoothly. In this article, we will refresh our concepts in the form of MCQs that are frequently asked in the interviews as well. Furthermore, you must also get benefitted in both either a written test or the interviews from these Spring MCQ. So, whether you are a beginner or a professional, solve these Spring MCQ
Annotations In Java java Core Java by devs5003 - May 31, 2024June 2, 20245 Before the introduction of Annotations, we were extensively using XML for metadata. Using XML for metadata as configurations separates the configuration from the code. At the later stage, when enterprise applications grown up, maintenance of XML was getting inconvenienced. Also, XML loosely couples from the code, in some cases almost separates. Then architects & developers started looking for solutions which can be tightly coupled with the code instead of XML. Then the solution was an introduction to Annotations. Don't get confused with the fact that we should always prefer loose coupling as it differs in case of Annotations. You will feel the benefits almost always when you completely understand the topic 'Annotations In Java'. Just using an annotation instead of creating
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
Google Gemini For Developers and Programmers AI for developers and Programmers Google Bard Google Gemini java Programming by devs5003 - May 17, 2024January 18, 20260 Undoubtedly, ChatGPT has gained a popularity during the early days of its launch. It is very helpful in getting your task done promptly irrespective of the area or industry you belong to. Similarly, Gemini (A Google Product) is gaining the popularity day by day to become useful for everybody. Gemini was previously known as Bard. It is a very handy tool for developers and programmers as well. Some experts in the industry observed that the Gemini provides better responses to Developers and Programmers in terms of explanation & authenticity. Therefore, it becomes important to know its capabilities for developers and programmers. In this article, we will talk about 'Google Gemini for Developers and Programmers'. What is Google Bard/Gemini? Google Bard(Gemini now) is a large
Continuation-Passing Style-CPS in Java Core Java java Programming by devs5003 - May 15, 2024May 17, 20240 Continuation-Passing Style (CPS) is a programming model used to manage control flow in software applications. It provides a way to handle asynchronous or callback-based programming by explicitly passing control from one function to another. Although this concept was originally generalized in functional programming languages like Scheme, Haskell, and Scala, but CPS can also be implemented in object-oriented languages like Java. In this article, we'll analyze the concepts behind Continuation-Passing Style-CPS in Java and explore its implementation with code examples. What is Continuation-Passing Style? In traditional programming model, control flow is managed through the call stack. When a function is called, the current execution context is pushed onto the stack, and when the function returns, the context is popped off the stack, allowing
Core Java Interview Questions with Detailed Answers Interview Core Java java by devs5003 - May 15, 2024November 4, 20250 Here in this section we will see Core Java Interview Questions and answers which will be valuable for any type of interview in Java Programming Language. I am sure that you will find some unique questions that you may rarely see in other sources. Moreover, you will find clear explanations of the answers to each question. When you go through the answers you will find that while answering the questions related new terms are also explained. If you need any other question to be added here, don't hesitate to put your notes in the comment section. Why are the Java primitive data types not objects? Why is Java not a pure Object-Oriented programming Language? Objects always consume more memory than primitives. If
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 IDE Eclipse Keyboard Shortcuts eclipse IDE java by devs5003 - May 9, 2024May 26, 20242 In this article, we will discuss about one of the favorite IDE for all java developers, the Eclipse. Moreover, as we believe in learning anything from the basics, we will first start learning fundamentals of an IDE. At the end of this article you must feel comfortable working on Eclipse IDE. Equally important, we will discuss about 'Java IDE Eclipse Keyboard Shortcuts' in between. Finally, we will conclude our topic with setting up build path and changing JRE versions in Eclipse, which you will be doing multiple times while developing a project. If you are a Java Developer and using Eclipse IDE in your project, I will suggest you to be master in Eclipse. Since you will be using Eclipse most