Micronaut Guides
Latest Guides
Aug 22, 2024
Learn how to send your Micronaut application Logback logs to Microsoft Azure Monitor Logs.
Jul 01, 2024
Learn how to create a Hello World Micronaut GraalPy application with a controller and a functional test.
Jul 01, 2024
Learn how to create a simple Micronaut GraalPy application using a third party Python package.
May 05, 2024
This guide compares how to secure a REST API with basic authentication in Micronaut and Spring Boot applications.
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.
Learn how to configure Cross-Origin Resource Sharing (CORS) in a Micronaut application.
Constructor, Field, and method parameter injection.
Learn how to expose a health endpoint for your Micronaut application.
Learn how to use Micronaut low-level HTTP Client. Simplify your code with the declarative HTTP client.
Delegate run and build actions to Gradle and Maven when working with IntelliJ IDEA
Learn about the available scopes: Singleton, Prototype, Request, Refreshable, Context...
Respond to a localized version of your application with LocalizedMessageSource.
Learn how to respond HTML or JSON depending on the request Accept HTTP Header.
How to create a custom constraint annotation for validation in your Micronaut application
Learn about error handling in the Micronaut framework.
Learn how to generate a PDF in a Micronaut Controller with OpenPDF.
Learn how to use Jackson to render XML in a Micronaut Controller.
Learn how to stream responses with ReactorStreamingHttpClient
Learn how to schedule periodic tasks inside your Micronaut microservices.
Learn to log every HTTP Request header with a @ServerFilter and a method annotated with @FilterRequest.
Learn how to expose static resources such as CSS or images in a Micronaut Framework application.
Learn how to generate an executable JAR of a Micronaut application with Maven or Gradle.
Learn how to create a Hello World Micronaut GraalVM application.
Micronaut build plugins offer several ways to build Docker images - JAR, GraalVM native executable, CRaC
Learn how to create a Hello World Micronaut GraalVM application.
Deploy a GraalVM Native Executable of a Micronaut application to Google Cloud Run - a fully managed serverless platform for containerized applications.
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.
Learn how to distribute a Micronaut function with an AWS Lambda RequestStreamHandler built as a GraalVM Native executable to AWS Lambda Custom Runtime.
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
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 start using CRaC with a Micronaut Application
Learn how to use Flyway to manage your schema migrations
Learn how to use the Liquibase to manage your schema migrations.
Learn how to use Micronaut Data and Hibernate Reactive
Learn how to access a database with Micronaut JDBC repositories.
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 Micronaut R2DBC repositories.
Learn how to a leverage Java records for immutable configuration, Micronaut Data Mapped Entities and Projection DTOs
Learn how to access a database with JPA and Hibernate using the Micronaut framework.
This guide shows how to use Micronaut Data from a Spring Boot application.
Learn how to access a database with MyBatis using the Micronaut framework.
Learn how to use DynamoDB as your persistence solution in a Micronaut Application.
Learn how to use EclipseStore as a high-performance persistence layer.
Learn how to use Hibernate Reactive with the Micronaut Framework.
Learn how to use MicroStream as a high-performance persistence layer.
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 use Micronaut caching annotations
Learn how to use Micronaut Test REST-Assured to test the REST API of your Micronaut application.
This guide shows how to replace H2 with a real database for testing in a Micronaut application.
This guide shows how to test a Kafka Listener using Testcontainers in a Micronaut Framework application.
This guide shows how to test an external API integration using Testcontainers WireMock module.
This guide shows how to create a Micronaut application with jOOQ support
Learn how to expose static resources such as CSS or images in a Micronaut Framework application.
Learn how to render an HTML page with Thymeleaf and Micronaut Views
Learn how to load Stimulus Javascript library with WebJars
Learn how to generate a JSON Web Key (JWK) with a Micronaut CLI (Command Line interface) application
Learn how to create a LDAP and a database authentication provider in a Micronaut Application.
Learn how to secure a Micronaut application using an API Key.
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 expose a keys endpoint with primary and secondary JSON Web Key (JWK)
Learn how to secure a Micronaut application using Session based authentication.
Learn how to secure a Micronaut application using Database authentication.
Learn how to implement mutual authentication using SSL and X.509 certificates.
Learn how to leverage token propagation in the Micronaut framework to simplify your code while keeping your microservices secure.
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 Cognito.
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 secure it with an Authorization Server provided by Keycloak.
Learn how to create a Micronaut application and authenticate with LinkedIn.
Learn how to create a Micronaut application and secure it with Google and provide authentication with OpenID Connect
Learn how to create a Micronaut application and secure it with an Authorization Server provided by Okta.
Learn how to use Client Credentials Flow between Micronaut microservices with an Authorization Server provided by Auth0.
Learn how to use Client Credentials Flow between Micronaut microservices with an Authorization Server provided by Amazon Cognito.
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
Learn how to use Google Secret Manager
Learn how to create secrets in Azure Key Vault and easily access them in a Micronaut application.
Learn how to create secrets in Oracle Cloud Vault and easily access them in a Micronaut application.
Learn how to use a Composite Pattern if you have multiple beans of particular type
Learn how to send emails with Amazon SES from a Micronaut application
Learn how to send emails with SendGrid from a Micronaut application
Learn how to send an email with Oracle Cloud Infrastructure (OCI) Email Delivery using the Micronaut framework.
Take a tour of the extension functions in the Micronaut framework and learn to write your own
Learn how to connect JMS Application to an AWS SQS Queue
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.
Use RabbitMQ to communicate between your Micronaut applications.
Use RabbitMQ RPC to use request-reply pattern in your Micronaut applications.
Expose endpoints using JAX-RS annotations in a Micronaut application
Write an application using Spring Boot annotations and compute it into a Micronaut application at compilation time.
Build a chat application by exposing a WebSocket Server with the Micronaut Framework
Learn how to generate an OpenAPI Specification of your Micronaut Application at build time and generate it as well in Asciidoc format
Learn how to generate a Declarative Micronaut Client API from an OpenAPI definition and how to use it in your application
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 an OpenAPI Specification of your Micronaut Application at build time and visualize it Swagger-UI
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 use Micronaut GraphQL.
Build a TODO application with Micronaut GraphQL.
Learn how to collect standard and custom metrics with the Micronaut framework.
Learn how to collect standard and custom metrics with the Micronaut framework and monitor them on Amazon Cloudwatch.
Learn how to collect standard and custom metrics with the Micronaut framework and monitor them on Oracle Cloud.
Use Google Cloud Trace to investigate the behavior of your Micronaut applications.
Use Oracle Cloud to investigate the behavior of your Micronaut applications.
Use Jaeger distributed tracing to investigate the behaviour of your Micronaut applications.
Use Jaeger distributed tracing to investigate the behavior of your Micronaut applications.
Use AWS X-Ray distributed tracing to investigate the behavior of your Micronaut applications.
Use Zipkin distributed tracing to investigate the behaviour of your Micronaut applications.
Use Zipkin distributed tracing to investigate the behavior of your Micronaut applications.
How to use Kubernetes service discovery and distributed configuration in a Micronaut application
Service discovery and distributed configuration in a Micronaut application with Amazon Elastic Kubernetes Service (EKS)
Service discovery and distributed configuration in a Micronaut application with Google Kubernetes Engine (GKE)
Service discovery and distributed configuration in a Micronaut application with Oracle Cloud Container Engine for Kubernetes (OKE)
Use Consul service discovery to expose your Micronaut applications.
Use Netflix Eureka service discovery to expose your Micronaut applications.
Learn how to use AWS Parameter for Configuration Discovery in a Micronaut application.
How to use Kubernetes service discovery and distributed configuration in a Micronaut application
Service discovery and distributed configuration in a Micronaut application with Amazon Elastic Kubernetes Service (EKS)
Service discovery and distributed configuration in a Micronaut application with Google Kubernetes Engine (GKE)
Service discovery and distributed configuration in a Micronaut application with Oracle Cloud Container Engine for Kubernetes (OKE)
Expose the exact version of code that your application is running.
Learn how to download an Excel file with the Micronaut framework and Spreadsheet Builder library.
Learn how to upload and retrieve files from Amazon S3 using the Micronaut Object Storage API
Learn how to upload and retrieve files from Google Cloud Storage using the Micronaut Object Storage API
Learn how to upload and retrieve files from Oracle Cloud Infrastructure (OCI) Object Storage using the Micronaut Object Storage API
Learn how to use AWS Parameter for Configuration Discovery in a Micronaut application.
Learn how to load your secrets from AWS Secrets Manager in your Micronaut application
Learn how to connect to an AWS MySQL Database
Learn how easy is to deploy a Micronaut Application to Elastic Beanstalk.
Service discovery and distributed configuration in a Micronaut application with Amazon Elastic Kubernetes Service (EKS)
Learn how to collect standard and custom metrics with the Micronaut framework and monitor them on Amazon Cloudwatch.
Learn how to upload and retrieve files from Amazon S3 using the Micronaut Object Storage API
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
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.
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
Deploy a Micronaut function to AWS Lambda Java 17 runtime and invoke it with a Lambda function URL.
Learn how to distribute a Micronaut function built as a GraalVM Native executable to AWS Lambda Custom Runtime
Learn how to deploy a Micronaut application to Microsoft Azure.
Learn how to create an Azure HTTP Function with the Micronaut framework
Learn how to send your Micronaut application Logback logs to Microsoft Azure Monitor Logs.
Learn how to connect a Micronaut Data JDBC application to a Microsoft Azure Database for MySQL
Learn how to create secrets in Azure Key Vault and easily access them in a Micronaut application.
Learn how to connect to a Google MySQL Database
Learn how to use Google Secret Manager
Use Google Cloud Trace to investigate the behavior of your Micronaut applications.
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 deploy a Micronaut application to Google App Engine Java Flexible Environment
Deploy a Micronaut application to Google Cloud Compute instance.
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.
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.
Service discovery and distributed configuration in a Micronaut application with Google Kubernetes Engine (GKE)
Learn how to upload and retrieve files from Google Cloud Storage using the Micronaut Object Storage API
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.
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 deploy a MySQL Micronaut Database Application to Oracle Cloud.
Learn how to create a secured Micronaut application and authenticate with OpenID Connect in Oracle Cloud.
Learn how to create secrets in Oracle Cloud Vault and easily access them in a Micronaut application.
Use Oracle Cloud to investigate the behavior of your Micronaut applications.
Service discovery and distributed configuration in a Micronaut application with Oracle Cloud Container Engine for Kubernetes (OKE)
Learn how to collect standard and custom metrics with the Micronaut framework and monitor them on Oracle Cloud.
Learn how to upload and retrieve files from Oracle Cloud Infrastructure (OCI) Object Storage using the Micronaut Object Storage API
Learn how to access an Oracle Autonomous Database using the Micronaut framework.
Learn how to deploy a Micronaut application to Oracle Cloud.
Use Oracle Cloud Streaming to communicate between your Micronaut applications.
Learn how to send an email with Oracle Cloud Infrastructure (OCI) Email Delivery using the Micronaut framework.
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.
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.
How to use Kubernetes service discovery and distributed configuration in a Micronaut application
Service discovery and distributed configuration in a Micronaut application with Amazon Elastic Kubernetes Service (EKS)
Service discovery and distributed configuration in a Micronaut application with Google Kubernetes Engine (GKE)
Service discovery and distributed configuration in a Micronaut application with Oracle Cloud Container Engine for Kubernetes (OKE)
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 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 secure a REST API with basic authentication in Micronaut and Spring Boot applications.
This guide compares how to test serialization and deserialization with Micronaut Framework and Spring Boot.
This guide shows how to use Micronaut Data from a Spring Boot application.
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.
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 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 secure a REST API with basic authentication in Micronaut and Spring Boot applications.
This guide compares how to test serialization and deserialization with Micronaut Framework and Spring Boot.