Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Top 5 Spring Cloud Annotations for Java Microservices
Top 40 Java and Linux Interview Questions Answers for IT Support Engineers
How to Print SQL Statements in Spring Boot Application Log File? Example Tutorial
Hello guys if you are working on a Spring Boot application which loads and save data from database but you are not sure which queries are run on backend and you want to see them then you have come to the right place. Earlier, I have showed you how to set logging level in Spring Boot and In this article we are going to have a look at another very interesting topic from Spring Boot on how to log SQL statements in spring boot app. I know you might be wondering why I’m calling a very boring topic an interesting one? A proper logging is among one of the features that sets intermediate or experienced developers apart from beginners.
Difference between Scala, Kotlin Java Programming
Top 15 Spring Boot Interview Questions with Answers for Java/JEE Programmers
10 Examples of New HttpClient + HttpRequest + HttpResponse In Java 11 (REST Client]
How to setup Request timeout in Spring Boot REST API? Example Tutorial
Top 40 Core Java Interview Questions Answers from Telephonic Round [UPDATED]
Difference between Abstraction and Encapsulation in Java and Object Oriented Programming? [Answer]
Top 40 Binary Tree Coding Interview Questions for Programmers
Top 30 OOP (Object Oriented Programming) Interview Questions Answers in Java
Top 10 Object Oriented Programming Concepts Every Programmer Should Learn
Can You Override Private Method in Java? Inner Class?
Top 10 Projects You Can Build to Learn Web Development in 2023
Top 5 Projects You Can Build to learn Android App Development in 2023
Top 10 Projects You Can Build to Learn Java in 2023
How to Fix Consider defining a bean of type 'package' in your configuration [Solved]
Hello and welcome to another blog post. Today we are going to take a look at one of the most frequently appearing errors in the Spring Boot application. I’m sure most of us have faced a similar issue while working with the Spring Boot application, and the error is ‘consider defining a bean of type package in your configuration’. In general, The error "Consider defining a bean of type 'package' in your configuration" occurs when Spring Boot is unable to find a bean of a specific type that is required by your application. In this article, we will take an in-depth look at why this error appears in the first place. Moving ahead we will learn how to fix this issue. So without further ado let’s jump into it.
How to use Spring Boot and Thymyleaf in Java Web Application? Example Tutorial
Java + Spring Boot + Microservices Example - Step by Step Guide
Asynchronous Messaging In Java? JMS, Kafka, and RabbitMQ Examples Tutorials
Top 5 Object Oriented Analysis and Design Interview Questions for Programmers, Software Engineers
Aggregator Design Pattern In Java Microservices with Examples
What is Event Sourcing Design Pattern in Java Microservices? Example
Hello Java programmers, if you are tired of constantly trying to keep track of your application's current state using a traditional relational database then the Event Sourcing pattern might be just what you need. Event Sourcing is a popular pattern in Microservice architecture that allows services to persist and query the state of an application using a sequence of events instead of storing the current state. This pattern has gained popularity because it helps to build complex systems with a clear audit trail and support for long-term scalability. By storing a sequence of events, rather than just the latest state, developers can reconstruct the application state at any point in time, even after failures or bugs. It's also one of the 10 essential Microservice patterns I have shared earlier and it's one of the top 3 along with Saga and CQRS patterns which we have seen in my earlier articles.
What is CQRS Pattern in Java Microservices? Command Query Responsibility Segregation Example Tutorial
Hello guys, if you are wondering what is CQRS pattern and when and how to use it in your Microservices then you have come to the right place. CQRS is one of the 10 essential Microservice pattern and can be used when your application is either read heavy or write heavy and reading and writing requirement are very different. It aims to separate your app into two parts, command part which writes data and query part which read data and that's how it allows you to develop, scale and optimize them separately. It's also one of the popular Microservices Questions and if you are preparing for interviews, you should prepare this pattern as well. Earlier, I have explained SAGA Pattern and Database Per Microservice pattern and in this article I will explain CQRS pattern, when to use it and what problem does it solve.
SAGA Design Pattern In Java Microservices with Example
Hello guys, if you want to learn about SAGA Microservice design pattern then you have come to the right place. SAGA is one of the 10 essential Microservice Design Patterns I have shared earlier and it solve a critical problem related to distributed transaction. But, before we get to the different examples that will teach you all about SAGA microservice design patterns in Java, let me tell you a bit more about what it really is. A microservice-based application is basically a distributed system. The overall system consists of multiple minor services, which provide the overall application functionality. This architectural style offers numerous benefits as well as several limitations. SAGA Pattern is also one of the popular Microservice interview question and if you are going for interview, it make sense to learn and understand this design pattern in depth.
Top 15 Microservices Interview Questions with Answers for Java Developers
Top 5 Free Courses to Learn Microservices for Java Developers in 2023 - Best of Lot
Hello Java programmers, if you want to learn Microservice architecture and look for free Microservice resources like free online courses, you have come to the right place. Earlier, I have shared the best Microservice courses for Java programmers to build Microservice using Java and the Spring framework, and today, I will share some free courses to learn Microservice in Java using Spring Boot and the Spring Cloud framework. If you don't know, Microservices is a modern architecture that goes along nicely with cloud computing and makes deployment, scaling, and even development easier.
Top 6 Online Courses to Learn Microservices with Java and Spring Boot in 2023 - Best of Lot
10 Examples of RestTemplate class in Spring Framework
What is ContextLoaderListener in Spring MVC? Example Tutorial
How to access configuration values from application.properties file in Spring Boot? Example Tutorial
Hello guys, if you are wondering how to access a value defined in your spring application configuration file then you are not alone, many Java developer face the same challenge. How to access a value defined in the application.properties file in Spring Boot is a common question that arises when you dealing with large software applications. In software applications, you need to have different environments for the QA, production, and local. So as a solution for this, you can use different configurations and update the files separately without affecting other environments by using property files.
How to enable HTTP Caching in Java Web application with Spring MVC? Cache-Control Header Example
What is @Conditional annotation in Spring Framework? Example Tutorial
What is @PropertySource Annotation in Java and Spring? PropertySource Example Spring Boot
How to call REST API an send HTTP GET and POST Request using cURL command in Linux? Example Tutorial
How @Configuration, @Component, and @ComponentScan annotations works in Spring Framework? Component Scanning Example
Top 6 DevOps Online Courses for Experienced Developers in 2023 - Best of Lot
Top 6 Online Courses to Learn Design Pattern in Java for Experienced Programmers in 2023 - Best of Lot
Top 5 Courses to Learn Quarkus for Java Microservices online in 2023 - Best of Lot
What is YAML? How to define List and Map in YAML? Example Tutorial
Top 20 Python Interview Questions and Answers for 1 to 2 Years Experienced
Hello guys, if you are preparing for Python developer interview and looking for common and frequently asked Python Interview Question then you have come to the right place. Earlier, I have shared best Python courses, books, and projects and today, I am going to share best Python Interview questions with answer to get you the Python developer job you always wanted. Understanding python is easy if you choose to. What is needed is more and more practice. In this article you will find the questions that are frequently asked during python interviews. You have to take your time and go through the questions with answers and you will be more than prepared as far as python interview is concerned.
Top 20 Kubernetes Interview Questions Answers for 1 to 3 Years Experienced
Top 15 HTML5 Interview Questions with Answers for 1 to 2 years Experienced
Top 27 Dynamic Programming Interview Questions for Interviews
Top 25 Linked List Coding Interview Questions for Java Programmers
Top 5 Free Coursera Courses for SQL and Database in 2023 - Best of Lot [UPDATED]
Top 5 Free Big Data Courses to Learn Hadoop, Spark, and Kafka in 2023 - Best of Lot
5 Best Free Flutter Courses Online for Beginners in 2023 - Best of Lot
Top 10 Free Git Courses for Programmers and DevOps in 2023 - Best of Lot
Top 5 Hibernate and Spring Data JPA Online Courses in 2023 - Best of Lot
Hello Java programmers, if you want to learn Hibernate and Spring Data JPA, two of the leading persistence framework for enterprise Java development, and need the best resources like books, tutorials, and online courses then you have come to the right place. In the last article, I have shared the best Spring framework courses, and best Hibernate books, and today, I am going to share the best online courses to learn both Hibernate and Spring Data JPA in 2023. These are the top-quality courses from popular online learning platforms and sites like Udemy, Pluralsight, and Baeldung and are trusted by thousands of Java developers around the world to learn these essential frameworks for Java developers.
Top 5 Java Performance Courses for Experienced Developers to Learn in 2023 - Best of Lot
Top 20 Selenium Interview Questions Answers for Programmers and Automation Test Engineers
How to read files from the resources folder in Spring Boot? Example Tutorial
Hello everyone, welcome to the blog post. In this article, we are going to take a look at a frequently asked question in spring boot on how to read files from the resources folder. A resource is any file that contains information relevant to your project, including configuration files, picture files, data files, or other types of files. In this article, we will look at various methods and techniques that both spring boot and ordinary Java code allow us to read a file from the resources directory. Our goal is not simply to list these approaches; rather, we will describe each strategy with the help of an example so that, everyone can easily grasp the topic. Without further ado, let's get started.
Top 20 Advanced Java Questions on Anonymous Class, Nested Static and Inner Class for Interviews
Hello guys, static class and nested classes are one of the tricky topic to master in Java and that's why they are quite popular on Java Interviews. Not many Java developer knows about Anonymous class or how Lambda is compiled into Anonymous class by JVM etc. If you are going for Java Interview, I highly recommend you to prepare nested class topic well in Java. Just like in the past, I have shared many Java in-depth questions on different topics like Lambda Expression, Stream API, Generics, Collections, Multithreading, String, array, Design Patterns, OOP, Spring Framework, Hibernate etc,
Top 5 Free Courses to Learn Jenkins, Docker, DevOps, Maven, and Kubernetes in 2023 - Best of Lot
My Favorite Courses to learn React.js in Depth in 2023 - Best of Lot
Top 20 Data Analyst Interview Questions Answers for 1 to 3 Years Experienced
Top 5 Courses to learn Docker in Depth - Best of Lot
Hello Java programmer, if you want to learn Docker and looking for the best Docker Courses from Java and Spring Boot developer point of view, then you have come to the right place. Earlier, I shared free Spring Boot courses and Docker courses, and in this article, I will share the best Docker courses for Java and Spring developers. Java is one of the most popular and widely used programming languages. It is an evergreen programming language. For Java developers, Docker is a game-changer. Docker is emerging rapidly, and it's now one of the most essential tools for all kinds of programmers, and there are reasons for it like Docker makes both development and deployment easier.
Top 7 Online Courses to Learn Go or Golang in 2023 - Best of Lot
Top 20 Azure Interview Questions and Answers for IT Professionals
Top 20 Tailwind CSS Interview Questions and Answers
8 Difference between TCP and UDP Protocol in Java? Networking Question
Top 25 React Native interview Questions Answers
Top 43 Java IO and File System Interview Questions with Answers for 1 to 3 Years Experienced
Top 24 Java Date, Time, and Calendar Interview Questions Answers
Top 10 Online Courses to Learn Data Structure and Algorithms in 2023 - Best of Lot
Top 10 Udemy Courses for Java Developers - Best of Lot
Difference between Chef and Ansible in DevOps
Top 10 Courses to Learn System Design and Software Architecture in 2023 - Best of Lot
CodeCademy vs Datacamp vs Udemy? Which one to Join in 2023?
Hello guys, if you are looking to upskill yourself this year, want to learn new tech and programming skill, and want to join an online learning platform or are confused between Udemy, Codecademy, and Datacamp then you have come to the right place. In the past, I have reviewed Udemy, Pluralsight, and Educative and in this article, I am going to review Udemy, DataCamp, and Codecademy learning platforms based upon their strength and weaknesses, and learning styles. For most people, online education is one of the best approaches to achieving your goals, whether starting a new business or learning new programming skills and even negotiation in general.
Top 10 Tools for REST API Development and Testing to Learn in 2023
Hello guys, it's been a long time since I have shared useful tools. Last, I have shared the best tools for Java developers to learn and then the best data visualization tools for Data Scientists to learn. So, today, I am going to write about 10 essential tools for REST API development and Testing. These are the tools that will help you in every stage of your REST-based project like design, development, testing, and documentation. If you are creating REST APIs in Java or any other programming language, most of the tools like Postman which are HTTP based are equally useful but a couple of tools are most suitable for Java developers.Without wasting any more of your time, here is my list of 10 useful tools every REST developer should learn
10 Examples of WebClient In Spring Framework and Java
Hello guys, if you are wondering how to use WebClient on Spring Framework and looking for simple how to examples of WebClient then you have come to the right place. Earlier, I have shared 10 example of RestTemplate in Spring Framework and in this article, I Am going to share 10 example of WebClient in Spring. These examples covers everything from sending GET request to REST API and consuming response, and also sending POST, PUT, and PATCH request to RESTful Web Services. You will also learn how to set header like Basic Authentication and Authorization header, cookies and much more.
Top 20 Firebase Interview Questions and Answers for Developers
Difference between wait() and join() methods in Java Multithreading? [Answered]
Difference between application.properties vs Application.json vs Application.yml in Spring Boot
Difference between Callable and Runnable in Java? call() vs run() method
What is Volatile Variable in Java? When to Use it? Example
The volatile variable in Java is a special variable that is used to signal threads and compilers and runtime optimizers like JIT that the value of this particular variable is going to be updated by multiple threads inside the Java application. By making a variable volatile using the volatile keyword in Java, the application programmer ensures that its value should always be read from the main memory and the thread should not use the cached value of that variable from their own stack. With the introduction of the Java memory model from Java 5 onwards along with the introduction of CountDownLatch, CyclicBarrier, Semaphore, and ConcurrentHashMap.
Difference between Docker Kubernetes for Programmers and DevOps
Difference between synchronized block and method in Java? Thread Example
Top 12 Java Thread, Concurrency, and Multithreading Interview Questions and Answers
Multithreading is an important feature of the Java programming language, which means threads are also an important part of any Java interview. It's true and in fact, at beginners and freshers, level Thread interview questions in Java are one of the most difficult to answer. One reason for interview questions related to multithreading and concurrency being difficult is confusion around how multiple threads work together and the second is threads are genuinely a complicated topic to understand and use correctly.
Producer Consumer Problem with Wait and Notify - Thread Example Tutorial
Java CountDownLatch Example for Beginners - [Multithreading Tutorial]
Difference between @RequestParam vs @RequestBody in Spring MVC? (with Example)
2 Ways to Read a Text File in Java? BufferredReader and Scanner Examples
Difference between Spring Boot vs Spring Cloud in Java
Hello guys, if you are wondering, what is difference between Spring Boot and Spring Cloud then you re not alone. Many Java developer are not familiar with various spring boot projects like Spring Security, Spring Data JPA, Spring Batch, Spring Boot, Spring Cloud etc and this lack of knowledge prevent them from taking full advantage of Spring Framework. In last article, I have explained difference between Spring framework and Spring Boot and in this article we are going to discuss the difference between Spring Boot and Spring Cloud. Before we dive into the difference between the two terms. Let us take a look at different terms like Spring, Spring Boot, and Spring Cloud.