MongoTemplate Spring Boot Example MongoDB java Spring Boot by devs5003 - March 7, 2023February 21, 20241 In continuation to series of tutorials on Spring Boot with MongoDB, we have already discussed various examples using MongoRepository interface. Now in this article we are going to discuss a different way of accessing data from MongoDB. This is nothing but MongoTemplate. MongoTemplate is defined by Spring Data MongoDB, used to perform DB operations without using any repository interface. If you are reading this article in context of Spring Boot, you must have heard about the term JDBCTemplate. Like JDBCTemplate, MongoTemplate is a class which provides us different handy methods to work on various DB operations. However, we generally use it to retrieve data from MongoDB using different Criteria queries. Hence, our topic here is to discuss is 'MongoTemplate Spring Boot
Spring Core Interview Questions java Spring Spring Boot Spring Core by devs5003 - February 28, 2023January 4, 20240 If you are preparing for a job interview in the field of Java development, it is essential to have a strong insight on Spring Core. Even being a Java developer, you must have Spring Boot knowledge to get shortlisted for a job interview. Furthermore, while working with a Spring Boot project, you must be using Spring Core Concepts. This article on 'Spring Core Interview Questions' will also benefit you as a Spring Core Concept refresher. Spring is one of the most popular Java frameworks, widely used in developing enterprise-level applications. The Spring Core module is the foundation of the Spring Framework, providing essential features such as dependency injection and inversion of control. In this article, we'll cover some essential Spring Core
Spring Boot Annotations With Examples Spring Boot java Spring by devs5003 - February 27, 2023December 24, 20235 Prior to Annotations, the Spring Framework's configuration was largely dependent on XMLs. Using XML configurations was not only a tedious process, but also an error-prone. If you committed any syntactical mistake in XML, sometimes it takes time to fix. But now-a-days annotations, particularly Spring Boot Annotations provide us remarkable capabilities in configuring Spring Framework's behavior. Moreover, Annotations caused major changes in programming style and slowly making the XML-based configurations outdated. The Java Programming introduced support for Annotations from JDK 1.5. However Spring Framework started supporting annotations from the release 2.5. Obviously, we are going to discuss about Spring Boot Annotations With Examples and their usages. Here in this article on 'Spring Boot Annotations With Examples', we will discuss about all annotations
Java Stream API Interview Questions Core Java java Java 8 Java MCQ MCQ Stream API by devs5003 - February 25, 2023March 20, 20240 If you are a java developer, you should have a solid understanding of Java 8 features, especially in the programming part. According to the observations of various corporate trainers in Java, developers comparatively take much time to understand the Java Stream API concepts. They also recommend that developers need much coding practice on Java Stream API concepts rather than going through theoretical concepts again & again. In this article, we will be doing coding practice in the form of MCQs that are frequently asked in the interviews. Undoubtedly, you must also get benefit in the interviews from these Java Stream API Interview Questions. So, whether you are a beginner or a professional, solve these Java Stream API Interview Questions to learn
Java 8 Interview Questions Core Java java Java 8 by devs5003 - February 22, 2023March 18, 20240 If you are a Java developer looking to crack your next job interview, you'll need to have a solid understanding of Java 8. To help you prepare, we have put together a brief guide packed with the most frequently asked Java 8 interview questions and their answers. From functional interfaces to lambdas and streams, we have included all the most important topics you will need to know to impress your interviewer and land your ideal job. So, whether you are a beginner or a professional, read on to learn or refresh your concepts of Java 8 before appearing in the interview. Who can get benefitted from these questions? 1) Job seekers: If you are looking for a job as a Java developer
How to implement Security in Spring Boot Project? Spring Boot java Spring Spring Boot 3 by devs5003 - February 19, 2023March 15, 20245 Now a days, almost every client demands for implementation of powerful security feature in real time application. Demand of security feature is very valid to maintain confidentiality, integrity and availability. There are many types of security in the real world, but we as a developer will focus on the Application/Software Security. Furthermore, in Application Security, our job is to ensure basically two things. First, only valid user can access the application. Second, If the user is valid, he/she can access only permitted data/information in that application. I consider, there is nothing to explain more about them as you must already be aware of these two terminologies i.e. Authentication & Authorization. You might already have guessed what we will discuss in our
MCQ on Java 8 Features Core Java java Java 8 Java MCQ MCQ by devs5003 - February 15, 2023March 20, 20240 Details on this page are a little bit different than at other pages. Rather than going through some theoretical or practical way of learning Java 8 Features, we will test our understanding of the same via solving multiple choice questions (MCQs). In this page, we will talk about ‘MCQ on Java 8 Features’. Answer & Explanation of each question are given at the bottom of this page. You will find these questions for the first time on the web as they are created after putting a strong 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
How to handle Exceptions/Errors in Spring Boot? Spring Boot java Spring by shwetas8536 - January 24, 2023January 15, 20243 Every one of us spend ample amount of time in learning big topics of Spring & Spring Boot. For example, Spring Boot REST, Spring Boot MVC, Spring Boot Security and many more, but generally we don't think about 'How to handle Exceptions/Errors in Spring Boot?'. This topic might become the most important for running the application without any interference. Also, it is very helpful in making other developers understand our code flow easily. Even finding out the origin of errors & exceptions becomes very irritating, if we have not handled them properly in our code. Sometimes, we need to debug the whole flow of code to find it out & resolve accordingly. In this way, Exception handling plays an important role
Spring Scheduling Cron Expression java Scheduling Spring Spring Boot by devs5003 - January 16, 2023April 29, 20240 When we have a requirement where we need to run a task/job repeatedly after a particular time interval, we achieve this functionality by implementing Scheduling. For Java developers, Spring Framework makes it simple by offering Spring Scheduler. Moreover, Cron Expressions are the most widely used approach to achieve scheduling. Cron Expressions are very popular in Unix/Linux OS for scheduling. Spring framework also incorporates the same concept internally. Spring Framework offers us an API where we can utilize Cron expression to get the task scheduled. This article about 'Spring Scheduling Cron Expression' includes all the new improvements in Cron Expressions in Spring 5.3. However, there are some other approaches to get our task scheduled using Spring/Spring Boot, but here in this article
What is Bean in Spring java Spring Spring Boot Spring Core by devs5003 - January 10, 2023March 9, 20240 Every Java Developer come across the terms Java Bean, Bean Class & Spring Bean. Most of the times people think that all are the same and used interchangeably. Even sometimes people consider them as a simple POJO class. In fact, these all have some logical differences. There are some set of standards & guidelines provided by Programmers that make them different from each other. In this article 'What is Bean in Spring?', we will start with the fundamentals which are also essential to know, then we will discuss the Spring Bean with examples. Please note that if you define a class that doesn't follow the guidelines of being a Spring Bean, the Java compiler will never complain you. In contrast, the