Blog Archives

♦ 11 Spring boot interview questions & answers

11 Spring boot interview questions & answers with tutorials for easy setup of new Spring applications. Spring boot helps you get started quickly. Q1. What is the key benefit of using Spring boot? A1. The key benefit is that you can “build a production ready application from scratch in a

Read more ›

Posted in FAQs Spring, Spring boot
Tags:

00: ♦ 11 Spring MVC Interview Q&As

Q1. Can you describe the Spring Web MVC framework architecture? A1. Spring Web MVC framework provides a Model View Controller architecture to develop loosely coupled 1) web applications 2) RESTful web services. Here is the high level diagram. Step 1: All requests are handles by the Spring DispatcherServlet, which applies…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Spring, member-paid, Spring MVC

01: ♥♦ Q01 – Q07 Spring interview questions & answers

Q1. What do you understand by the terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) container? A1. The differences are very subtle and can be hard to understand. Hence, explained via code samples. 1) Dependency Inversion Principle (DIP): is one of the 6 OO design

Read more ›

Posted in FAQs Free, FAQs Spring, Spring Core
Tags:

01: ♥♦ Spring DI & IoC interview Q&As

Video: Spring DIP, DI, and IoC. This extends 13 Spring interview questions & answers. Q1. What do you understand by the terms Dependency Inversion Principle (DIP), Dependency Injection (DI) and Inversion of Control (IoC) container? A1. Dependency Inversion Principle (DIP) is one of the 6 OO design principles abbreviated as

Read more ›

Posted in FAQs Free, FAQs Spring, Spring Core
Tags: , , , ,

01: Simple Spring Boot Tutorial in 8 steps

Assumes that your Java, Maven, and eclipse are set up as per: Setting up Java, Maven, and eclipse Step 1: Create a simple maven project using the maven “archetype” plugin. The above command creates a folder “simple-spring-boot” Step 2: import it into eclipse by choosing File –> Import –> Maven…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring boot, Spring Boot Tutorial

01: Spring MVC beginner tutorial step by step

This tutorial extends Getting started with Apache Tomcat application server by deploying a simple JEE Application to introduce Spring MVC. Spring dependencies via Maven Step 1: Modify the pom.xml file in the simpleWeb project to bring in the Spring web dependency jars. Define a controller & store a model value

Read more ›

Posted in Spring MVC

01b: ♦ Q08 – Q13 Spring interview Q&As

This extends 13 Spring basics Q1 – Q7 interview questions & answers. Q8. Can you describe the high level Spring architecture? A8. A Spring Bean represents a POJO (Plain Old Java Object) performing useful operation(s). All Spring Beans reside within a Spring IoC Container. The Spring Framework hides most of…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Spring, member-paid, Spring Core
Tags:

02: Simple Spring Boot Restful Web Service Tutorial

This tutorial extends Simple Spring Boot Tutorial in 8 steps. Step 1: The pom.xml file that was created in the previous Spring boot tutorial needs to be changed from “spring-boot-starter-actuator” to “spring-boot-starter-web” Step 2: Add additional logic to the “App.java” to turn it into a controller to be invoked as…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring boot, Spring Boot Tutorial

02: Spring MVC form submission tutorial step by step

This tutorial extends Spring MVC beginner tutorial step by step. Maven project structure Model class to capture login form details Step 1: Create a POJO “Login.java” in the package “com.mytutorial.model” under “src/main/java” to capture login form details like “user” & “password”. Define the Controller Step 2: Create a new controller

Read more ›

Posted in Spring MVC

03: ♦ Spring Boot Web & Actuator Beginner Tutorial Step by Step

Step 1: Create a simple maven project using the maven “archetype” plugin. Step 2: Import it as an “existing maven project” into eclipse. Step 3: The pom.xml file to bring in the Spring boot dependencies & plugins. Step 4: The “App.java” with a RESTful endpoint. Step 5: Create a new

Read more ›

Posted in Spring boot

03: Spring MVC with Java Configs instead of XML configs step by step

This tutorial extends Spring MVC form submission tutorial step by step. This tutorial gets rid of web.xml and applicationContext.xml files. pom.xml changes Step 1: Add “JSTL” (i.e. JSP Standard Tag Library ) jar dependency, and also override default “maven-war-plugin” by explicitly adding the plugin and setting the “failOnMissingWebXml” to false.

Read more ›

Posted in Spring MVC

03a: ⏯ Spring Boot Web & Actuator Beginner Video Tutorial

Related Links 1. Spring Boot Web & Actuator Beginner Tutorial Step by Step. 2. Simple Spring Boot Tutorial in 8 steps. Spring Boot Interview Q&As 11 Spring boot interview questions & answers....

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in ► Videos on Spring Boot Tutorials, member-paid, Spring boot

04 ♦ 17 Spring bean life cycles & scopes FAQ interview Questions & Answers

Q1. Does Spring dependency injection happen during compile time or runtime? A1. Runtime during creating an object. Q2. What is the difference between prototype scope and singleton scope? Which one is the default? A2.Singleton means single bean instance per IoC container, and prototype means any number of object instances per…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in FAQs Spring, member-paid, Spring Core
Tags: , ,

04: Spring boot MVC tutorial with thymeleaf & bean validation

Step 1: Create a “simple-spring-mvc” maven project. Step 2: Import the project into eclipse. File > Import -> Existing Maven Projects and select “C:\Users\java-_000\projects\simple-spring-mvc”. Step 3: The pom.xml file should look like: “spring-boot-starter-thymeleaf” is used instead of “spring-boot-starter-web” as it allows you to use htmls instead of JSPs Step 4:…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Companion, 90-Day-Java-JEE-Career-Companion, 180-Day-Java-JEE-Career-Companion, 365-Day-Java-JEE-Career-Companion and 2-Year-Java-JEE-Career-Companion Log In | Register | Try free FAQs | Home
Posted in member-paid, Spring boot, Spring Boot Tutorial

04: Spring MVC with Thymeleaf and JavaConfigs

Project structure pom.xml to bring-in Thymeleaf & Spring jars Step 1: Add “Thymeleaf“jar dependency, and also override default “maven-war-plugin” by explicitly adding the”failOnMissingWebXml” to false to not have web.xml as we will be using JavaConfigs and AbstractAnnotationConfigDispatcherServletInitializer. Define the model class Step 2: Define the POJO Login.java as the model

Read more ›

Posted in Spring MVC
Page 1 of 212

800+ Java Q&As – ♥Free | ♦FAQs

open all | close all

100+ Java Tutorials – Step by step

open all | close all

How good are your

open all | close all