When building REST APIs or microservices in Micronaut, unit tests validate individual components.But real-world applications need integration tests to ensure everything works together — routes, c
Micronaut Unit Testing ( Controllers and Services)
In this tutorial, we will learn how to perform Micronaut Unit testing for Controllers and Services. We will build a simple Student Management example using com.kscodes.micronaut package structure,
Flyway or Liquibase in Micronaut for DB Migrations
When building real-world applications, database schema changes are unavoidable.Manual DDL changes or relying on Hibernate’s auto schema generation (hbm2ddl.auto) is risky for production. ✅ Solu
Using JPA or JDBC in Micronaut
When building data-driven applications, Micronaut Data allows you to choose between: Both approaches are fully supported by Micronaut Data, but they serve different use cases.In this post, we’ll
Writing Queries with Micronaut Data: Finder Methods
One of the most powerful features of Micronaut Data is its ability to generate database queries at compile-time just by analyzing method names. This approach is called Finder Methods or Derived Que
Define Entities and Repositories in Micronaut
In the previous post, we successfully created a Micronaut project and configured it to connect with H2, PostgreSQL, and MySQL databases. You can check that out – Setting Up a Micronaut App wi
Setting Up a Micronaut App with H2 / PostgreSQL / MySQL
Micronaut makes building modern cloud-native applications extremely simple, but one of the most important parts of any application is data persistence — saving and retrieving data from a database
Introduction to Micronaut Data
When building modern applications, interacting with databases is one of the most common and critical tasks. Traditionally, using frameworks like JPA or Hibernate comes with challenges such as runti
Handling HTTP Errors and Custom Error Pages in Micronaut
When building web applications or REST APIs, things can go wrong: ✅ Handling errors gracefully is extremely important. Micronaut provides simple yet powerful ways to: In this post, you’ll learn
Consuming External APIs in Micronaut
So far, we’ve learned how to create REST APIs in Micronaut and return JSON. But in real-world applications, you often need to consume external APIs. For example: ✅ The good news:Micronaut makes