📘 Premium Read: Access my best content on Medium member-only articles — deep dives into Java, Spring Boot, Microservices, backend architecture, interview preparation, career advice, and industry-standard best practices.
🎓 Top 15 Udemy Courses (80-90% Discount): My Udemy Courses - Ramesh Fadatare — All my Udemy courses are real-time and project oriented courses.
▶️ Subscribe to My YouTube Channel (176K+ subscribers): Java Guides on YouTube
▶️ For AI, ChatGPT, Web, Tech, and Generative AI, subscribe to another channel: Ramesh Fadatare on YouTube
This tutorial covers Spring Core, Annotations, All Java Spring Configuration, Spring AOP, Spring MVC, Spring Security, Spring REST, Spring Boot and Spring Data JPA.
Spring Core
Spring IOC Container
- Spring IOC Container Overview - In this article, we will discuss what Spring IOC container, how it works, how to create Spring IOC container, how to retrieve beans from Spring IOC container with examples.
- Spring IOC Container Java Config Example - In this article, we will discuss a simple example to demonstrate the working of Spring IOC Container with Java-based configuration metadata?
- Spring IOC Container XML Config Example - In this article, we will discuss a simple example to demonstrate the working of Spring IOC Container with XML-based configuration metadata?
- Spring BeanFactory Interface Example - In this quick article, we will discuss the Spring BeanFactory interface with an example.
- BeanFactory vs ApplicationContext in Spring - In this short article, we will quickly discuss the difference between the BeanFactory and ApplicationContextcontainer levels and the implications of bootstrapping.
Spring Dependency Injection
- Guide to Dependency Injection in Spring - This guide provides what is dependency injection in Spring framework and what are different types of dependency injection supports in Spring with examples (constructor and setter method).
- Spring Dependency Injection via Setter Example - In this article, we will learn how to use setter-based dependency injection in Spring Applications.
- Spring Dependency Injection via Constructor Example - In this article, we will learn how to use constructor-based dependency injection in Spring Applications.
- Spring - @DependsOn Annotation Example - In this article, we will discuss how to use @DependsOn annotation in Spring Applications with an example. The @DependsOn annotation can force Spring IoC container to initialize one or more beans before the bean which is annotated by @DependsOn annotation.
Spring Bean Scopes
- Guide to Spring Bean Scopes - This guide provides you what are different Spring bean scopes with examples.
- Singleton and Prototype Bean Scopes Examples - In this article, we will discuss what is a difference between Singleton and Prototype scope with a source code example.
- Spring InitializingBean and DisposableBean Example - This post guides you on how to interact with the container’s management of the bean lifecycle by implementing Spring InitializingBean and DisposableBean interfaces.
- Spring @Bean’s init method and destroy method Attributes Example - In this article, we will discuss how to use init method and destroy method attributes of the @Bean annotation to perform certain actions after bean initialization or before bean destruction by a container.
- Spring @Scope annotation with Prototype Scope Example - In this article, we will discuss how to create a bean, scoped as a prototype, using the @Scope annotation.
- Spring @Scope annotation with Singleton Scope Example - In this article, we will discuss how to create a bean, scoped as a singleton, using the @Scope annotation.
Annotation-based Container Configuration
- Spring Annotation Based Container Configuration - In this article, we will briefly discuss different annotations that Spring provides to support the annotation-based container configuration.
- Spring @Autowired Annotation with Example - In this article, we will discuss a very important Spring dependency injection annotation that is a @Autowired annotation.
- Spring - @Primary Annotation Example - In this quick article, we’ll discuss Spring’s @Primary annotation which was introduced with version 3.0 of the framework. @Primary to give higher preference to a bean when there are multiple beans of the same type.
- Spring @PostConstruct and @PreDestroy Example - In this article, we will discuss how to use method-level annotations @PostConstruct and @PreDestroy to customize the nature of a Bean.
- Spring @Qualifier Annotation Example - In this example, we will see how to use @Qualifier annotation to resolve ambiguous dependencies.
Java-based Container Configuration
- Spring Java Based Configuration Basics -In this article, we will briefly look into the basics of Spring Java-based container configuration.
- Spring Java Based Configuration Example - In this post, we will demonstrate the usage of Spring Java-based container configuration.
- Spring @Bean Annotation with Example - In this article, we will discuss Spring Java configuration based @Bean annotation with examples. We will also discuss different scenarios of how and when to use @Bean annotation.
- Spring @Configuration Annotation with Example - In this article, we will discuss a very important Spring Java-based configuration annotation that is a @Configuration annotation with examples.
- Spring @PropertySource Annotation with Example - In Spring, you can use @PropertySource annotation to externalize your configuration to a properties file. In this article, we will discuss how to use @PropertySource to read a properties file and display the values with @Value and Environment.
- Spring @Import Annotation with Example - In this article, we will discuss how to use Spring @Import annotation with examples.
- Spring @ImportResource Annotation Example - In this article, we will quickly discuss how to use @ImportResource annotation with a simple Spring boot application.
- Spring - @Lazy Annotation Example - In this quick article, we’ll discuss Spring’s @Lazy annotation with an example. By default, the Spring IoC container creates and initializes all singleton beans at the time of application startup. We can prevent this pre-initialization of a singleton bean by using the @Lazy annotation.
- 15 Spring Core Annotations - In this quick article, we will discuss Spring core annotations that are used in Spring DI and Spring IOC.
Spring AOP
Spring MVC
Spring MVC Getting Started/Basics
- Spring MVC 5 - Hello World Example - In this article, we will learn how to create a simple Hello World Spring MVC Application using Spring MVC 5 +, JSP, Maven build tool and Eclipse IDE
- Spring MVC 5 - Sign Up Form Handling Example - In this article, we will learn how to create and submit a simple form (signup form) in Spring MVC application using Spring MVC 5+, Maven build tool, JSP and Eclipse IDE or STS.
- Spring MVC JSP Form Tags Tutorial - In this tutorial, we're going discuss all Spring MVC form tags and we will use important spring MVC form tags such as form tag, text fields tag, select tag, check-box(s), radio box(s), password tag, button tag, errors tag, etc.
- Spring MVC 5 Form Validation with Annotations Tutorial - In this quick tutorial, we're going to learn about Spring MVC form validation using annotations like @NotNull, @Size, @Min, @Max, @Email, @Pattern, etc.
Spring MVC 5 and Hibernate 5 Integration
- Spring MVC 5 + Hibernate 5 + JSP + MySQL CRUD Tutorial - In this spring hibernate integration tutorial, we will learn how to create Spring MVC 5 web application, handle form submission, integrate hibernate 5 to connect to the backend database. In this tutorial, we will integrate Spring MVC 5+ with Hibernate ORM framework using Java-based configuration without any XML configuration.
- Spring MVC 5 + Spring Data JPA + Hibernate 5 + JSP + MySQL Tutorial - In this tutorial, we will discuss the integration of Spring MVC 5, Spring Data JPA, Hibernate 5 and MySQL CRUD example. We will demonstrate CRUD(Create, Retrieve, Update, Delete) operations on a Customer entity as well as a display list of customers from the MySQL database.
- Spring MVC + Spring Boot2 + JSP + JPA + Hibernate 5 + MySQL Example - In this article, we will learn how to develop a Spring MVC web application using Spring MVC, Spring boot 2, JSP, Hibernate 5, JPA, Maven, and MySQL database.
- Spring Boot 2 MVC Web Application Thymeleaf JPA MySQL Example - In this article, we will learn how to develop a Spring MVC web application using Spring boot 2, Thymeleaf, Hibernate 5, JPA, Maven, and MySQL database.
- Spring MVC 5 + Hibernate 5 XML Based Configuration Example - In this tutorial, we will integrate Spring MVC with Hibernate ORM framework using XML-based configuration.
Spring MVC + Spring Boot Articles
- Spring MVC Thymeleaf CRUD Example Tutorial - In this tutorial, we’ll learn how to develop a CRUD web application with Spring MVC and Thymeleaf.
- Spring MVC + Spring Boot2 + JSP + JPA + Hibernate 5 + MySQL Example - In this article, we will learn how to develop a Spring MVC web application using Spring MVC, Spring boot 2, JSP, Hibernate 5, JPA, Maven, and MySQL database.
- Spring Boot 2 MVC Web Application Thymeleaf JPA MySQL Example - In this article, we will learn how to develop a Spring MVC web application using Spring boot 2, Thymeleaf, Hibernate 5, JPA, Maven, and MySQL database.
- Spring Boot 2 - Spring MVC + Thymeleaf Input Form Validation - In this quick article, we will discuss the process of configuring a web application form to support validation. We will use the latest Spring boot 2.0.5 RELEASE, Hibernate validator with Thymeleaf to develop simple Spring MVC web application. We get Hibernate Validator for free when we use Spring Boot Starter Web.
Spring MVC + Spring Boot + Spring Security
- Spring Boot 2 + Spring MVC + Role-Based Spring Security + JPA + Thymeleaf + MySQL Tutorial -In this tutorial, we will learn how to use the Spring Boot Security Starter to secure SpringMVC-based web applications. We will develop step by step Message Storing Spring MVC web application(securing with spring security) using spring boot, spring MVC, role-based spring-security, JPA, Thymeleaf, and MySQL.
- Authenticating a User with LDAP using Spring Boot and Spring Security - This guide walks you through the process creating an application and securing it with the Spring Security LDAP module.
- User Registration Module using Spring Boot 2 + Spring MVC + Spring Security + Hibernate 5 + Thymeleaf + MySQL - In this article, we discuss how to create a user registration form with Spring Boot, Spring Security, Hibernate and Thymeleaf. We validate the user registration fields with hibernate validator annotations and a custom field matching validator to validate if the email and/or password fields match. We will create Role-based Spring security with a MySQL database.
Spring MVC and Spring Bean Annotations
- The Spring @Controller and @RestController Annotations with Examples - In this quick article, we’ll discuss the difference between @Controller and @RestController annotations in Spring MVC.
- Spring @RequestBody and @ResponseBody Annotations - In this quick article, we will discuss usage Spring @RequestBody and @ResponseBody annotations with examples.@RequestBody and @ResponseBody annotations are used to bind the HTTP request/response body with a domain object in method parameter or return type. Behind the scenes, these annotation uses HTTP Message converters to convert the body of HTTP request/response to domain objects.
- Spring @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, and @PatchMapping - In this article, we will discuss Spring 4.3. introduced HTTP method-specific shortcut variants of @RequestMappingare @GetMapping, @PostMapping, @PutMapping, @DeleteMapping and @PatchMapping annotations with sample code examples.
- Spring @Component Annotation Example - In this quick article, we will discuss how to use @Component annotation in Spring-based applications.
- Spring @Service Annotation - In this quick article, we will discuss how to use @Service annotation in Spring-based applications.
- Spring Web MVC Annotations - In this tutorial, we’ll explore Spring Web annotations from the org.springframework.web.bind.annotation package.
Spring MVC + Spring Boot Mini Projects
- Mini Todo Management Project using Spring Boot + Spring MVC + Spring Security + JSP + Hibernate + MySQL - In this article, we will learn how to develop Spring MVC Todo Management web application using Spring Boot, Spring MVC, Spring Security, JSP, JPA and MySQL as a database.
- User Registration Module using Spring Boot + Spring MVC + Spring Security + Hibernate 5 + Thymeleaf + MySQL - In this article, we discuss how to create a user registration form with Spring Boot, Spring Security, Hibernate and Thymeleaf. We validate the user registration fields with hibernate validator annotations and a custom field matching validator to validate if the email and/or password fields match. We will create Role-based Spring security with a MySQL database.
- 20+ Free Open Source Projects Using Spring Framework // Very Useful
Spring Security
Spring Security Basics
Spring MVC + Spring Boot + Spring Security
Spring Data JPA
- Spring Data JPA Tutorial - Getting Started - This article provides a quick introduction to Spring Data JPA. It also describes all the important interfaces of Spring data commons and Spring Data JPA - Repository, CrudRepository, PagingAndSortingRepository, QueryDslPredicateExecutor, JpaRepository, JpaSpecificationExecutor
- Spring Data JPA Tutorial - Java Based Configuration - This post describes a complete example of how to configure Spring Data JPA with hibernate using Java-based configuration.
- Spring Data JPA - Query Creation from Method Names - In this article, we will learn how we can create query methods by using the query generation from the method name strategy. We will demonstrate this with a complete end-to-end example using Spring boot.
- Spring Data JPA - Creating Database Queries With Named Queries - In this article, we will learn to create database queries by using named queries. We will demonstrate this with a complete end-to-end example using Spring boot.
- Spring Data JPA @NamedNativeQuery and @NamedNativeQueries Example - In this article, we will learn how to create database queries using @NamedNativeQuery and @NamedNativeQueriesannotations. These annotations let you define the query in native SQL by losing the database platform independence.
- Spring Data JPA - Creating Database Queries using @Query Annotation - This blog post describes how to create database queries using the @Query annotation. We will demonstrate this with a complete end-to-end example using Spring boot.
- Spring Data JPA - Auditing with Spring Boot 2 and MySQL Example - In this article, we will discuss how can we configure JPA to automatically persist the CreatedBy, CreatedDate, LastModifiedBy, and LastModifiedDate columns for any entity. We will create a simple Spring Boot CRUD REST APIs and we implement auditing using spring data JPA.
- Spring Data JPA - Working with Multiple Datasources using Spring Boot - In this article, we will learn how to configure multiple data sources and connect to multiple databases in a typical Spring Boot web application. We will use Spring Boot, JPA, Hibernate 5, Thymeleaf and H2 database to build a simple Spring Boot multiple data sources web application.
- Spring Data JPA Repository Testing using Spring Boot @DataJpaTest - In this article, we will learn how to test Spring Data JPA Repositories using Spring Boot provided @DataJpaTest annotation.
- Spring Data Java 8 Support - Spring Data now supports core Java 8 features – such as Optional, Stream API and CompletableFuture. In this quick article, we’ll go through some examples of how we can use these with the framework.
- Spring Data Annotations - In this tutorial, we’ll see the most common annotations of the Spring Data, Spring Data JPA, and Spring Data MongoDB projects.
- Spring @Repository Annotation - In this quick article, we will discuss how to use @Repository annotation in Spring-based applications. DAO or Repository classes usually represent the database access layer in an application and should be annotated with @Repository.
- Spring MVC 5 + Spring Data JPA + Hibernate 5 + JSP + MySQL Tutorial - In this tutorial, we will discuss the integration of Spring MVC 5, Spring Data JPA, Hibernate 5 and MySQL CRUD example. We will demonstrate CRUD(Create, Retrieve, Update, Delete) operations on a Customer entity as well as a display list of customers from the MySQL database.
Comments
Post a Comment
Leave Comment