Skip to content
KSCodes
  • Java 21
  • Java
    • String Handling
    • Collections
    • Exception Handling
    • JDBC
    • File IO
    • Apache POI
    • XML Parsing
    • JSON
  • Spring MVC
  • HTML5
  • jQuery
  • Tutorials
  • Misc

Using CommandLineRunner and ApplicationRunner in Spring Boot

In Spring Boot, sometimes you want to run some code right after the application starts—such as initializing data, setting up caches, or calling external services. Spring Boot provides two interfa

Read More →

Spring Boot Properties: application.properties vs application.yml

Spring Boot lets you configure your app without touching code by using configuration files. These files live in the src/main/resources folder and help control: The two most commonly used Spring Boo

Read More →

Dependency Injection in Spring Boot: The Basics

Dependency Injection (DI) is a design pattern where objects are provided with their dependencies instead of creating them directly. It’s like saying: “Hey, I don’t want to build this thing my

Read More →

Key Spring Boot Annotations: @SpringBootApplication, @Component, @Configuration

Spring Boot is heavily annotation-driven. Annotations make your code cleaner, shorter, and easier to read by replacing XML configurations. They are part of what makes Spring Boot “convention over

Read More →

Spring Boot Project Structure: Files, Folders, and Best Practices

A well-organized Spring Boot project structure: Spring Boot projects follow a convention-over-configuration model, which gives you a standard folder layout. Let’s break it all down 👇 📁 Defa

Read More →

Spring Boot Auto-Configuration Internals Explained

Spring Boot auto-configuration is the feature that makes it so easy to get started. It automatically configures your application based on the libraries present on the classpath and your defined set

Read More →

Understanding Spring Initializr (Complete Overview)

Spring Initializr is a web-based tool provided by the Spring team that lets you quickly generate a basic Spring Boot project structure. You don’t need to write boilerplate code or manually set up

Read More →

Setting up Spring Boot with Maven (Step-by-Step Guide)

🧰 What You’ll Learn In this guide, we’ll walk through how to: 🛠️ Prerequisites Before you start, make sure you have: ⚡ Step 1: Generate a Spring Boot Project Go to Spring Initializr:

Read More →

Introduction to Spring Boot 3.x: Why It’s the Best Time to Learn

Spring Boot is a framework that helps developers build stand-alone, production-ready Java applications quickly and easily. It is built on top of the Spring Framework and removes the need for comple

Read More →

Micronaut testing with mock beans and clients

In real-world testing, you often need to isolate your code from external dependencies: ✅ This is where mocking becomes very important.✅ Micronaut testing with mock beans and clients makes it ea

Read More →

Posts pagination

< 1 … 10 11 12 13 14 … 40 >







Aim

The aim of this blog is to try to give some useful tips that can make developers life easy at work. For any queries or suggestions please email us at kscodes.web@gmail.com

Links

  • About Us
  • Privacy Policy
Copyright © 2021