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
Return JSON from REST Endpoints in Micronaut
When you build REST APIs, one of the most common tasks is to send data in JSON format.JSON (JavaScript Object Notation) is: It is super easy to return JSON from REST endpoints in Micronaut. In this
Path Parameters and Query Parameters in Micronaut
When building REST APIs, we often need to receive input from the user through URL parameters. This is very easy with Path Parameters and Query Parameters in Micronaut . In this post, we will learn:
Creating REST Endpoints with @Controller and @Get/@Post in Micronaut (School Management Example)
Micronaut makes it very easy to create REST APIs using simple annotations. In this tutorial, we will explore how to use annotations like @Controller and @Get/@Post in Micronaut to build REST endpoi