Micronaut Guides
Latest Guides
Oct 13, 2024
Learn how to map a one-to-many association with Micronaut Data JDBC.
Oct 07, 2024
Generate a JSON Schema specification of your Java objects at compilation thanks to Micronaut JSON Schema.
Learn how to create a Hello World Micronaut application with a controller and a functional test.
Learn how to utilize @Configuration and @ConfigurationBuilder annotations to effectively configure declared properties.
Constructor, Field, and method parameter injection.
Learn about the available scopes: Singleton, Prototype, Request, Refreshable, Context...
Learn about error handling in the Micronaut framework.
How to create a custom constraint annotation for validation in your Micronaut application
Expose the exact version of code that your application is running.
Delegate run and build actions to Gradle and Maven when working with IntelliJ IDEA
Learn how to use Micronaut Test REST-Assured to test the REST API of your Micronaut application.
This guide shows how to create a Micronaut application with jOOQ support
This guide shows how to test an external API integration using Testcontainers WireMock module.
This guide shows how to test a Kafka Listener using Testcontainers in a Micronaut Framework application.
This guide shows how to replace H2 with a real database for testing in a Micronaut application.
Oracle Cloud
Learn how to upload and retrieve files from Oracle Cloud Infrastructure (OCI) Object Storage using the Micronaut Object Storage API
Amazon Web Services
Learn how to upload and retrieve files from Amazon S3 using the Micronaut Object Storage API
Google Cloud Platform
Learn how to upload and retrieve files from Google Cloud Storage using the Micronaut Object Storage API
Learn how to send emails with SendGrid from a Micronaut application
Oracle Cloud
Learn how to send an email with Oracle Cloud Infrastructure (OCI) Email Delivery using the Micronaut framework.
Amazon Web Services
Learn how to send emails with Amazon SES from a Micronaut application
Use RabbitMQ to communicate between your Micronaut applications.
Use RabbitMQ RPC to use request-reply pattern in your Micronaut applications.
Use Kafka to communicate between your Micronaut applications.
Learn how to use Mosquitto as an MQTT broker, create a Micronaut CLI application and publish an MQTT topic, and subscribe to the MQTT topic in a different Micronaut Messaging application.
Oracle Cloud
Use Oracle Cloud Streaming to communicate between your Micronaut applications.
Amazon Web Services
Learn how to connect JMS Application to an AWS SQS Queue
Learn to log every HTTP Request header with a @ServerFilter and a method annotated with @FilterRequest.
Microsoft Azure
Learn how to send your Micronaut application Logback logs to Microsoft Azure Monitor Logs.
Learn how to schedule periodic tasks inside your Micronaut microservices.
Amazon Web Services
Learn how to a scheduled expression with Event Bridge trigger to execute a Micronaut AWS Lambda every 5 minutes
Learn how to use Micronaut caching annotations
Learn how to use a Composite Pattern if you have multiple beans of particular type
Respond to a localized version of your application with LocalizedMessageSource.
Learn how to map a one-to-many association with Micronaut Data JDBC.
Learn how to access a database with Micronaut JDBC repositories.
Learn how to a leverage Java records for immutable configuration, Micronaut Data Mapped Entities and Projection DTOs
Learn how to connect a Micronaut Data JDBC application to a Microsoft Azure Database for MySQL
Oracle Cloud
Learn how to deploy a MySQL Micronaut Database Application to Oracle Cloud.
Amazon Web Services
Learn how to connect to an AWS MySQL Database
Google Cloud Platform
Learn how to connect to a Google MySQL Database
Learn how to access a database with JPA and Hibernate using the Micronaut framework.
Learn how to use Micronaut Data and Hibernate Reactive
Learn how to use Hibernate Reactive with the Micronaut Framework.
Learn how to use the Liquibase to manage your schema migrations.
Learn how to use Flyway to manage your schema migrations
Learn how to access a database with Micronaut R2DBC repositories.
Learn how to use a non-blocking reactive streams MongoDB client with a Micronaut application
Learn how to use a blocking MongoClient with a Micronaut application
Learn how to access a MongoDB database asynchronously with Micronaut Data.
Learn how to access a MongoDB database with Micronaut Data and the MongoDB Sync driver.
Learn how to access a database with MyBatis using the Micronaut framework.
Learn how to use MicroStream as a high-performance persistence layer.
Learn how to use EclipseStore as a high-performance persistence layer.
Oracle Cloud
Learn how to access an Oracle Autonomous Database using the Micronaut framework.
Amazon Web Services
Learn how to use DynamoDB as your persistence solution in a Micronaut Application.
Learn how to create a LDAP and a database authentication provider in a Micronaut Application.
Learn how to secure a Micronaut application using 'Basic' HTTP Authentication Scheme.
Learn how to secure a Micronaut application using JWT (JSON Web Token) Authentication.
Learn how to secure a Micronaut application using JWT (JSON Web Token) based authentication where the JWT tokens are transported via Cookies.
Learn how to secure a Micronaut application using Session based authentication.
Learn how to leverage token propagation in the Micronaut framework to simplify your code while keeping your microservices secure.
Learn how to generate a JSON Web Key (JWK) with a Micronaut CLI (Command Line interface) application
Learn how to expose a keys endpoint with primary and secondary JSON Web Key (JWK)
Learn how to implement mutual authentication using SSL and X.509 certificates.
Learn how to secure a Micronaut application using an API Key.
Learn how to secure a Micronaut application using Database authentication.
Learn how to create a Micronaut application and secure it with an Authorization Server provided by Okta.
Learn how to create a Micronaut application and secure it with Strava and provide authentication with OpenID Connect
Learn how to create a Micronaut application and secure it with an Authorization Server provided by Github. Learn how to write your own Authentication Mapper.
Learn how to create a Micronaut application and authenticate with LinkedIn.
Learn how to create a Micronaut application and secure it with an Authorization Server provided by Auth0.
Learn how to create a Micronaut application and secure it with an Authorization Server provided by Keycloak.
Oracle Cloud
Learn how to create a secured Micronaut application and authenticate with OpenID Connect in Oracle Cloud.
Amazon Web Services
Learn how to create a Micronaut application and secure it with an Authorization Server provided by Cognito.
Google Cloud Platform
Learn how to create a Micronaut application and secure it with Google and provide authentication with OpenID Connect
Learn how to use Client Credentials Flow between Micronaut microservices with an Authorization Server provided by Auth0.
Amazon Web Services
Learn how to use Client Credentials Flow between Micronaut microservices with an Authorization Server provided by Amazon Cognito.
Oracle Cloud
Learn how to create secrets in Oracle Cloud Vault and easily access them in a Micronaut application.
Amazon Web Services
Learn how to load your secrets from AWS Secrets Manager in your Micronaut application
Learn how to create an AWS Lambda function with the Micronaut framework to rotate a secret stored in AWS Secrets Manager
Microsoft Azure
Learn how to create secrets in Azure Key Vault and easily access them in a Micronaut application.
Google Cloud Platform
Learn how to use Google Secret Manager
Learn how to expose a health endpoint for your Micronaut application.
Learn how to configure Cross-Origin Resource Sharing (CORS) in a Micronaut application.
Learn how to respond HTML or JSON depending on the request Accept HTTP Header.
Learn how to use Micronaut low-level HTTP Client. Simplify your code with the declarative HTTP client.
Learn how to stream responses with ReactorStreamingHttpClient
Learn how to download an Excel file with the Micronaut framework and Spreadsheet Builder library.
Learn how to generate a PDF in a Micronaut Controller with OpenPDF.
Learn how to use Jackson to render XML in a Micronaut Controller.
Expose endpoints using JAX-RS annotations in a Micronaut application
Build a chat application by exposing a WebSocket Server with the Micronaut Framework
Learn how to use Micronaut GraphQL.
Build a TODO application with Micronaut GraphQL.
Learn how to write an OpenAPI definition, use it to generate a server template for a Micronaut application, and get it all to work
Learn how to generate a Declarative Micronaut Client API from an OpenAPI definition and how to use it in your application
Learn how to generate an OpenAPI Specification of your Micronaut Application at build time and visualize it Swagger-UI
Learn how to generate an OpenAPI Specification of your Micronaut Application at build time and generate it as well in Asciidoc format
Generate a JSON Schema specification of your Java objects at compilation thanks to Micronaut JSON Schema.
Use Jaeger distributed tracing to investigate the behaviour of your Micronaut applications.
Use Zipkin distributed tracing to investigate the behaviour of your Micronaut applications.
Use Jaeger distributed tracing to investigate the behavior of your Micronaut applications.
Use Zipkin distributed tracing to investigate the behavior of your Micronaut applications.
Oracle Cloud
Use Oracle Cloud to investigate the behavior of your Micronaut applications.
Amazon Web Services
Use AWS X-Ray distributed tracing to investigate the behavior of your Micronaut applications.
Google Cloud Platform
Use Google Cloud Trace to investigate the behavior of your Micronaut applications.
Use Consul service discovery to expose your Micronaut applications.
Use Netflix Eureka service discovery to expose your Micronaut applications.
How to use Kubernetes service discovery and distributed configuration in a Micronaut application
Oracle Cloud
Service discovery and distributed configuration in a Micronaut application with Oracle Cloud Container Engine for Kubernetes (OKE)
Amazon Web Services
Service discovery and distributed configuration in a Micronaut application with Amazon Elastic Kubernetes Service (EKS)
Google Cloud Platform
Service discovery and distributed configuration in a Micronaut application with Google Kubernetes Engine (GKE)
How to use Kubernetes service discovery and distributed configuration in a Micronaut application
Oracle Cloud
Service discovery and distributed configuration in a Micronaut application with Oracle Cloud Container Engine for Kubernetes (OKE)
Amazon Web Services
Learn how to use AWS Parameter for Configuration Discovery in a Micronaut application.
Service discovery and distributed configuration in a Micronaut application with Amazon Elastic Kubernetes Service (EKS)
Google Cloud Platform
Service discovery and distributed configuration in a Micronaut application with Google Kubernetes Engine (GKE)
Learn how to collect standard and custom metrics with the Micronaut framework.
Oracle Cloud
Learn how to collect standard and custom metrics with the Micronaut framework and monitor them on Oracle Cloud.
Amazon Web Services
Learn how to collect standard and custom metrics with the Micronaut framework and monitor them on Amazon Cloudwatch.
Learn how to create a Hello World Micronaut GraalVM application.
Learn how to generate an executable JAR of a Micronaut application with Maven or Gradle.
Micronaut build plugins offer several ways to build Docker images - JAR, GraalVM native executable, CRaC
Oracle Cloud
Learn how to deploy a Micronaut application to Oracle Cloud.
Amazon Web Services
Learn how easy is to deploy a Micronaut Application to Elastic Beanstalk.
Microsoft Azure
Learn how to deploy a Micronaut application to Microsoft Azure.
Google Cloud Platform
Deploy a GraalVM Native Executable of a Micronaut application to Google Cloud Run - a fully managed serverless platform for containerized applications.
Learn how to deploy a Micronaut application to Google App Engine Java Flexible Environment
Deploy a Micronaut application to Google Cloud Compute instance.
Deploy a Docker Image containing a CRaC enabled JDK and a pre-warmed, checkpointed application to Google Cloud Run - a fully managed serverless platform for containerized applications.
Learn how to create a Hello World Micronaut GraalVM application.
In this guide, you will see several methods to provide the metadata required for reflection to be used in a Micronaut application distributed as a GraalVM Native executable.
Amazon Web Services
Learn how to distribute a Micronaut Java application built as a GraalVM Native executable to AWS Lambda Custom Runtime
Learn how to distribute a Micronaut function built as a GraalVM Native executable to AWS Lambda Custom Runtime
Learn how to distribute a Micronaut function with an AWS Lambda RequestStreamHandler built as a GraalVM Native executable to AWS Lambda Custom Runtime.
Google Cloud Platform
Deploy a GraalVM Native Executable of a Micronaut application to Google Cloud Run - a fully managed serverless platform for containerized applications.
Learn how to start using CRaC with a Micronaut Application
Google Cloud Platform
Deploy a Docker Image containing a CRaC enabled JDK and a pre-warmed, checkpointed application to Google Cloud Run - a fully managed serverless platform for containerized applications.
How to use Kubernetes service discovery and distributed configuration in a Micronaut application
Oracle Cloud
Service discovery and distributed configuration in a Micronaut application with Oracle Cloud Container Engine for Kubernetes (OKE)
Amazon Web Services
Service discovery and distributed configuration in a Micronaut application with Amazon Elastic Kubernetes Service (EKS)
Google Cloud Platform
Service discovery and distributed configuration in a Micronaut application with Google Kubernetes Engine (GKE)
Oracle Cloud
Learn how to deploy a Micronaut Function (Serverless) application to Oracle Cloud.
Learn how to deploy a Micronaut HTTP API Gateway Function (Serverless) application to Oracle Cloud.
Microsoft Azure
Learn how to create an Azure HTTP Function with the Micronaut framework
Google Cloud Platform
Deploy a Micronaut application as an HTTP Function to Google Cloud Functions - a scalable pay-as-you-go functions-as-a-service (FaaS) to run your code with zero server management.
Amazon Web Services
Learn how to distribute a Micronaut Java application built as a GraalVM Native executable to AWS Lambda Custom Runtime
Learn how to distribute a Micronaut application to AWS Lambda 17 Runtime
Learn how to distribute a serverless Micronaut function to AWS Lambda 17 Runtime
Learn how to distribute a Micronaut function built as a GraalVM Native executable to AWS Lambda Custom Runtime
Learn how to a scheduled expression with Event Bridge trigger to execute a Micronaut AWS Lambda every 5 minutes
Learn how to generate thumbnails for images uploaded to an S3 bucket with AWS Lambda and the Micronaut framework
Learn how to create an AWS Lambda function with the Micronaut framework to rotate a secret stored in AWS Secrets Manager
Deploy a Micronaut function to AWS Lambda Java 17 runtime and invoke it with a Lambda function URL.
Learn how to deploy a Micronaut function to AWS Lambda Java Runtime with an AWS Lambda RequestStreamHandler.
Learn how to distribute a Micronaut function with an AWS Lambda RequestStreamHandler built as a GraalVM Native executable to AWS Lambda Custom Runtime.
Google Cloud Platform
Deploy a Micronaut application to Google Cloud Run - a fully managed serverless platform for containerized applications.
Deploy a GraalVM Native Executable of a Micronaut application to Google Cloud Run - a fully managed serverless platform for containerized applications.
Learn how to render an HTML page with Thymeleaf and Micronaut Views
Learn how to load Stimulus Javascript library with WebJars
This guide shows how to build with the Micronaut Framework a chat application such as the Rails application demonstrated in the Hotwire announcement screencast.
Run the Turbo Native Demo with a Micronaut application as the backend.
Learn how to expose static resources such as CSS or images in a Micronaut Framework application.
Take a tour of the extension functions in the Micronaut framework and learn to write your own
Learn how to create a Hello World Micronaut GraalPy application with a controller and a functional test.
Learn how to create a simple Micronaut GraalPy application using a third party Python package.
This guide shows compares the Application Class of a Spring Boot application vs a Micronaut Framework application.
This guide compares how to create a bean in a Spring Boot application with @Configuration vs. in a Micronaut application with @Factory.
This guide compares how to mark a class as a bean in a Spring Boot application with @Component vs. in a Micronaut application with @Singleton.
This guide compares using Spring's UriComponentsBuilder vs Micronaut Framework's UriBuilder.
Write an application using Spring Boot annotations and compute it into a Micronaut application at compilation time.
This guide shows how to use Micronaut Data from a Spring Boot application.
This guide compares how to test serialization and deserialization with Micronaut Framework and Spring Boot.
This guide compares how to implement a GET endpoint with Micronaut Framework and Spring Boot.
This guide compares how to add POST endpoint in both Micronaut and Spring Boot applications.
This guide compares how to add Spring Data or Micronaut Data to power a GET endpoint in both Micronaut and Spring Boot applications.
This guide compares how to create a GET endpoint that returns a paginated JSON Array in Micronaut and Spring Boot applications.
This guide compares how to secure a REST API with basic authentication in Micronaut and Spring Boot applications.