Frameworks

Dependency Injection

Dependency Injection (DI) means a class does not create the objects it needs; Spring creates them and hands them in. Spring looks at the constructor, setter, or field, finds a matching bean in the container, and injects it automatically. It is used for loose coupling, easy swapping of implementations (for example Email vs SMS), and […]

Dependency Injection Read More »

Spring Beans and Dependency Injection

Spring Beans and Dependency Injection (DI) form the core foundation of the Spring Framework’s Inversion of Control (IoC) engine. Instead of classes creating and managing their own dependencies using the new keyword, the Spring IoC container handles object creation, wiring, lifecycle management, and destruction. This decouples application components, making them modular, reusable, and easy to

Spring Beans and Dependency Injection Read More »

Environment Profiles

Environment profiles let one application keep separate configurations for development, testing and production. Each profile has its own file, such as application-dev.properties and application-prod.properties. A property named spring.profiles.active decides which profile is loaded at startup. Settings that appear in both the common file and the profile file are overridden by the profile file. The same

Environment Profiles Read More »

Custom Configuration

Custom configuration means defining your own application-specific values (like college name or academic year) in application.properties instead of hard-coding them in Java. Spring Boot reads these values at startup and makes them available inside your classes. You can bind them to a Java class with @ConfigurationProperties, or read single values with @Value. Changing a value

Custom Configuration Read More »

YAML Configuration

YAML (application.yml) is a human-readable file for storing Spring Boot application settings in a hierarchical, indentation-based structure. Related settings such as server, database, and JPA are grouped under one parent key, so you don’t repeat prefixes. It supports maps, lists, and nested objects, and can hold separate settings for dev, test, and prod. The Student

YAML Configuration Read More »

Application Properties

application.properties is Spring Boot’s main external configuration file, located in src/main/resources. It holds settings such as the application name, server port, context path, database details, and your own custom values. It is used so behavior can change without touching Java code or recompiling. Values are read in code with @Value for a single property or

Application Properties Read More »

Spring Boot Configuration

Spring Boot Configuration is the mechanism used to define, externalize, and manage settings that control how an application behaves across different environments without modifying source code. It relies on a “convention over configuration” approach, providing sensible defaults while allowing developers to easily override settings such as server ports, database credentials, third-party API keys, and business

Spring Boot Configuration Read More »

Building and Running the Application(Capstone Project)

Learn how to build, package, configure, and run a complete Spring Boot application as a standalone application. This capstone project combines the concepts learned in the previous sections, including Spring Boot Starters, Auto Configuration, Embedded Server, REST APIs, JPA, database connectivity, application properties, and Maven build commands. The project demonstrates how a Spring Boot application

Building and Running the Application(Capstone Project) Read More »

Embedded Server

Understand how Spring Boot Embedded Servers allow web applications to run as standalone applications without requiring a separately installed and configured external web server. Spring Boot applications can package the server inside the application and start it automatically when the application runs. For a typical Spring Boot web application, the web starter brings the required

Embedded Server Read More »

Auto Configuration

Understand how Spring Boot Auto Configuration automatically configures application components based on the dependencies available in the project and the configuration provided by the developer. Auto Configuration reduces the amount of configuration that developers need to write manually. For example, when database dependencies are available and database properties are configured, Spring Boot can automatically configure

Auto Configuration Read More »

Scroll to Top