Configuration Reference

Version:2.3.0

Standard Optimizers

Warning
These are not configuration properties to add in your regular Micronaut configuration files,but properties to be added to the Micronaut AOT configuration, via your build plugin.Please refer to the appropriate Maven or Gradle plugin for more details.

Module cached.environment

This module is available in JIT and native modes.

Table 1. Configuration Properties for cached.environment

Property

Description

Example value

cached.environment.enabled

Enables the Caches environment property values: environment properties will be deemed immutable after application startup. optimization

true

Module deduce.environment

This module is available in JIT and native modes.

Table 2. Configuration Properties for deduce.environment

Property

Description

Example value

deduce.environment.enabled

Enables the Deduces the environment at build time instead of runtime optimization

true

Module known.missing.types

This module is available in JIT and native modes.

Table 3. Configuration Properties for known.missing.types

Property

Description

Example value

known.missing.types.enabled

Enables the Checks of existence of some types at build time instead of runtime optimization

true

known.missing.types.list

A list of types that the AOT analyzer needs to check for existence (comma separated)

io.reactivex.Observable,​reactor.core.publisher.Flux,​kotlinx.coroutines.flow.Flow,​io.reactivex.rxjava3.core.Flowable,​io.reactivex.rxjava3.core.Observable,​io.reactivex.Single,​reactor.core.publisher.Mono,​io.reactivex.Maybe,​io.reactivex.rxjava3.core.Single,​io.reactivex.rxjava3.core.Maybe,​io.reactivex.Completable,​io.reactivex.rxjava3.core.Completable,​io.methvin.watchservice.MacOSXListeningWatchService,​io.micronaut.core.async.publisher.CompletableFuturePublisher,​io.micronaut.core.async.publisher.Publishers.JustPublisher,​io.micronaut.core.async.subscriber.Completable

Module logback.xml.to.java

This module is available in JIT and native modes.

Table 4. Configuration Properties for logback.xml.to.java

Property

Description

Example value

logback.xml.to.java.enabled

Enables the Replaces logback.xml with a pure Java configuration (Experimental) optimization

true

Module netty.properties

This module is available in JIT and native modes.

Table 5. Configuration Properties for netty.properties

Property

Description

Example value

netty.properties.enabled

Enables the Defines some Netty system properties when starting the application which optimize startup times. optimization

true

netty.machine.id

The machine id used by Netty. By default, generates a random value at runtime. Set it to a fixed MAC address to override, or use the value 'netty' to disable the optimization and get it at runtime.

random

netty.process.id

The process id to use for Netty. Defaults to a random PID at runtime. Set it to a fixed value (not recommended) or use the value 'netty' to disable the optimization and get it at runtime.

random

Module precompute.environment.properties

This module is available in JIT and native modes.

Table 6. Configuration Properties for precompute.environment.properties

Property

Description

Example value

precompute.environment.properties.enabled

Enables the Precomputes Micronaut configuration property keys from the current environment variables optimization

true

Module scan.reactive.types

This module is available in JIT and native modes.

Table 7. Configuration Properties for scan.reactive.types

Property

Description

Example value

scan.reactive.types.enabled

Enables the Scans reactive types at build time instead of runtime optimization

true

Module serviceloading.jit

This module is available in JIT mode.

Table 8. Configuration Properties for serviceloading.jit

Property

Description

Example value

serviceloading.jit.enabled

Enables the Scans for service types ahead-of-time, avoiding classpath scanning at startup optimization

true

service.types

The list of service types to be scanned (comma separated)

io.micronaut.context.env.PropertySourceLoader,​io.micronaut.inject.BeanConfiguration,​io.micronaut.inject.BeanDefinitionReference,​io.micronaut.http.HttpRequestFactory,​io.micronaut.http.HttpResponseFactory,​io.micronaut.core.beans.BeanIntrospectionReference,​io.micronaut.core.convert.TypeConverterRegistrar,​io.micronaut.context.env.PropertyExpressionResolver

serviceloading.rejected.impls

A list of implementation types which shouldn’t be included in the final application (comma separated)

com.Misc,​org.Bar

serviceloading.force.include.impls

A list of implementation types to include even if they don’t match bean requirements (comma separated)

com.Misc,​org.Bar

possible.environments

The list of environment names that this application can possibly use at runtime.

dev,​prod,​aws,​gcs

Module sealed.property.source

This module is available in JIT and native modes.

Table 9. Configuration Properties for sealed.property.source

Property

Description

Example value

sealed.property.source.enabled

Enables the Precomputes property sources at build time optimization

true

Module graalvm.config

This module is available in native mode.

Table 10. Configuration Properties for graalvm.config

Property

Description

Example value

graalvm.config.enabled

Enables the Generates GraalVM configuration files required to load the AOT optimizations optimization

true

service.types

The list of service types to be scanned (comma separated)

io.micronaut.Service1,​io.micronaut.Service2

Module serviceloading.native

This module is available in native mode.

Table 11. Configuration Properties for serviceloading.native

Property

Description

Example value

serviceloading.native.enabled

Enables the Scans for service types ahead-of-time, avoiding classpath scanning at startup optimization

true

service.types

The list of service types to be scanned (comma separated)

io.micronaut.context.env.PropertySourceLoader,​io.micronaut.inject.BeanConfiguration,​io.micronaut.inject.BeanDefinitionReference,​io.micronaut.http.HttpRequestFactory,​io.micronaut.http.HttpResponseFactory,​io.micronaut.core.beans.BeanIntrospectionReference,​io.micronaut.core.convert.TypeConverterRegistrar,​io.micronaut.context.env.PropertyExpressionResolver

serviceloading.rejected.impls

A list of implementation types which shouldn’t be included in the final application (comma separated)

com.Misc,​org.Bar

serviceloading.force.include.impls

A list of implementation types to include even if they don’t match bean requirements (comma separated)

com.Misc,​org.Bar

possible.environments

The list of environment names that this application can possibly use at runtime.

dev,​prod,​aws,​gcs