Micronaut Guides

Latest Guides

Feb 01, 2024
Learn how to expose static resources such as CSS or images in a Micronaut Framework application.
Jan 15, 2024
Learn how to use Jackson to render XML in a Micronaut Controller.
Jan 11, 2024
Learn how to distribute a Micronaut function with an AWS Lambda RequestStreamHandler built as a GraalVM Native executable to AWS Lambda Custom Runtime.
Jan 11, 2024
Learn how to deploy a Micronaut function to AWS Lambda Java Runtime with an AWS Lambda RequestStreamHandler.
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 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.
Tags: graalvm
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 access a MongoDB database with Micronaut Data and the MongoDB Sync driver.
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.
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 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 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 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 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.
Learn how to use 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.
Learn how to use AWS Parameter for Configuration Discovery in a Micronaut application.
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 easy is to deploy a Micronaut Application to Elastic Beanstalk.
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 connect a Micronaut Data JDBC application to a Microsoft Azure Database for MySQL
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.
Tags: gcp
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.
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.
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.
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.
This guide shows compares the Application Class of a Spring Boot application vs a Micronaut Framework application.
This guide compares using Spring's UriComponentsBuilder vs Micronaut Framework's UriBuilder.