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

Database Initialization in Spring Boot

When working with Spring Boot and relational databases, initializing your database schema and loading seed data is a common requirement. Database Initialization in Spring Boot is easy using two fil

Read More →

Advanced JPA Criteria Queries in Spring Boot

Spring Data JPA gives us simple methods like findByName() or custom queries using @Query. But when you need to build dynamic, complex queries at runtime (especially with multiple filters), Criteria

Read More →

Native Queries in Spring Data JPA : @Query Annotation

pring Data JPA is powerful. In most cases, you can get away with method naming conventions like findByUsername, or using derived queries. But sometimes, you need more control — like using custom

Read More →

DTO Mapping in Spring Boot : Best Practices

In Spring Boot applications, especially those using REST APIs, you often don’t want to expose your Entity classes directly to the client. That’s where DTOs (Data Transfer Objects) come in. DTOs

Read More →

Entity Relationships in Spring Data JPA

In real-world applications, data is often related. For example: Entity Relationships in Spring Data JPA (with Hibernate) allows you to map these relationships easily using annotations. This guide w

Read More →

Introduction to Spring Data JPA with Hibernate

When you’re building a Java application, you often need to store and retrieve data from a database. Writing this code manually can be repetitive and error-prone. Luckily, Spring Data JPA and

Read More →

Pagination and Sorting in Spring Boot REST APIs

When your API deals with large datasets — like fetching thousands of users or records — loading everything at once is inefficient. That’s where pagination and sorting come in. They help l

Read More →

Handling File Upload and Download with Spring Boot REST

In many web applications, file handling is a common requirement — whether it’s uploading profile pictures, downloading reports, or exporting data. Spring Boot makes it easy to build robust REST

Read More →

Consuming External APIs in Spring Boot using WebClient

When building microservices or applications that rely on external systems, you often need to call third-party REST APIs. While RestTemplate has been widely used for this, WebClient is the modern an

Read More →

Building Versioned REST APIs in Spring Boot

As APIs evolve, older versions must be supported while newer versions offer enhanced functionality. This is where API versioning becomes essential. Spring Boot doesn’t enforce any specific API ve

Read More →

Posts pagination

< 1 … 9 10 11 12 13 … 41 >







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