How To Become a Good Java Developer? java Microservices Programming Spring Spring Boot by devs5003 - November 4, 2023March 21, 20240 There are numerous programming languages that programmers and developers can use today from C language, C++ to Python etc. Java may be a language that is considered versatile due to its ability to be utilized in designing customized apps that are fast and lightweight. Programming languages are designed to shape out a developer's future, they are used to make different apps, wonderful websites, and several software products you see around you. Consider the big giants like Amazon, Google, and the rest other major industry players are using Java in a mature manner. Becoming expert Java developers puts individuals in the front line within the industry. Moreover, many companies are trying to find developers proficient in Java. Let's talk about some popularity
Spring Cloud Annotations With Examples java Microservices Spring Boot Spring Cloud by devs5003 - October 22, 2023December 26, 20230 Introduction of new Annotations reduces the development efforts day by day. Needless to say, as a developer, we can't think of the development of an enterprise level application without using annotations, especially in applications that use Spring or related frameworks. Furthermore, we come across the Spring Cloud framework when we develop a Microservices based application. Now-a-days, there is a high demand of Microservices based applications in the industry. Therefore, it becomes very crucial to know the annotations used in Spring Cloud. Hence, in this article, we are going to discuss 'Spring Cloud Annotations With Examples'. We can't deny from the fact that the cloud is the future and, in the upcoming days, we will be seeing a lot of Java based
How to reduce boilerplate code in REST API Spring Data REST java Spring Boot Spring Boot REST Spring Data REST by devs5003 - October 20, 2023October 20, 20235 In previous article on REST API Development, we have already seen that how we can develop a REST API with minimum lines of code. Still, we have more scope to reduce lines of code using a concept called 'Spring Data REST' in Spring Boot. So, our title of the article is 'How to reduce boilerplate code in REST API Spring Data REST'. In Spring Data REST concept we don't have to write even RestController and its methods. The Spring Data REST dependency will take care of it using HATEOAS (Hypertext as the Engine of Application State). HATEOAS project is a library of APIs that we can use to easily create REST representations. Spring Data REST provides hyperlinks to access REST operations
WebClient in Spring Boot java Spring Boot Spring Boot REST WebClient by devs5003 - October 4, 2023February 13, 20240 A typical modern web application generally has four well known layers i.e. Presentation Layer, Service Layer and Data Layer, and an Integration Layer. The Integration layer generally works with the web services concept and connects two different applications to exchange data between them. One application refers to producer/provider, whereas other refers to consumers. Here, we will discuss about REST consumer/client API using WebClient in Spring Boot. The traditional way of implementing REST client API is by using RestTemplate. However, we have already gone through the RestTemplate in another article where we had developed different operations to consume REST API. Now, we must have a question in mind ‘How to write REST Consumer API using WebClient in Spring Boot?’. Needless to say, WebClient
Lombok Spring Boot And Lombok Annotations Lombok Java java Spring Boot by devs5003 - September 16, 2023February 28, 202417 While developing a project in Java, we tend to repeat the similar kind of code for each class we create. Such kind of repetitive code is generally called boilerplate code. Our next question might be like 'Can we get rid of such multiple lines of code in real time development?' Then answer of your question is simply 'Yes'. The next question should be 'How can we reduce such kind of boilerplate code?' Now the answer is 'with the help of Lombok API, some people call it Lombok Project'. However, as the title " Lombok Spring Boot and Lombok Annotations" suggests, our focus in this article will be on the Lombok API Annotations. Furthermore, the 'Lombok API' is highly being used in
MCQ on Spring and Hibernate Hibernate java Java MCQ MCQ Spring Spring Boot by devs5003 - September 14, 2023March 20, 20241 Details on this page are a little bit different than at other pages. Rather than going through some theoretical or practical way of learning Spring & Hibernate frameworks, we will test our understanding of Spring & hibernate via solving multiple choice questions (MCQs). In this page, we will talk about 'MCQ on Spring and Hibernate'. Answer & Explanation of each question are given at the bottom of this page. These questions are newly introduced on the web for the first time, having been created with significant effort. You may also find these questions in some other websites/blogs after publishing this page. Someone who likes the questions & interested in copying the questions can just provide a reference of this page as a
How to Implement Feign Client in Spring Boot Microservices? Feign Client java Microservices Spring Boot Spring Cloud by devs5003 - August 29, 2023March 10, 20249 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
logback xml Configuration Examples java Logging Spring Spring Boot by devs5003 - August 23, 2023February 15, 20240 When it comes to implementing Logging feature in our application, especially in Spring Boot based applications, Logback comes into the picture. Typically, logback configuration comes in the form of XML file (logback.xml) for the developers to use. It provides a powerful, responsive, and reliable solution in configuring the application's logging. It ensures consistent and customizable logging behavior, simplify maintenance, and offers dynamic adjustments. All of them are crucial for effective application monitoring, debugging, and troubleshooting. Logback is an open-source project with a strong engagement to reliability and robustness. Logback offers a broad range of configuration options through logback.xml, allowing us to customize our logging setup to accurately match our application's requirement. We can control log levels, formats, destinations, and filtering rules.
Logger In Spring Boot java Logging Spring Spring Boot by devs5003 - August 15, 2023February 15, 20241 We often pay very less attention on the implementation of logging during the development phase of an application. On the other hand, it becomes mandatory when we deploy the application in production. Sometimes we just insert 'System.out.println' statements as a shortest path, which is a bad practice in the production level applications. Logging serves as a crucial tool for developers by providing insights into the inner workings of an application. It also assists in diagnosing issues, and helping in the overall monitoring and maintenance of the software. In this article, we will learn logger in Spring Boot and related concepts with extensive amount of examples. What is a Log? In software development, "log" represents a report containing the history of events, activities, or
Spring Boot MVC CRUD Example java MVC Spring Spring Boot by devs5003 - August 14, 2023March 16, 20244 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, 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. Hence our article title is 'Spring Boot MVC CRUD Example'. In this article, we will make use of Thymeleaf, Bootstrap