The gist ist that you would define custom type converters for REST controller methods via the FormatterRegistry
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Override
public void addFormatters(FormatterRegistry registry) {
registry.addFormatterForFieldType(TenantId.class,
new GenericIdFormatter(TenantId.class));
}
}
These are not used/initialized by micronaut-spring, therefore the following request fails:
Custom formatters are not available: See
https://github.com/rburgst/micronaut-spring-example
The gist ist that you would define custom type converters for REST controller methods via the FormatterRegistry
These are not used/initialized by micronaut-spring, therefore the following request fails:
To replicate the problem, launch the application via
and send the above mentioned request.