Questions tagged [micronaut]
Micronaut is a JVM framework for building web applications with a strong focus on microservice applications.
micronaut
1,828
questions
0
votes
1
answer
32
views
Micronaut: How to intercept the http request and bind the header values to request parameters as Map<String,String> in controller in Micronaut?
I am writing a generic interface for controller which has below signature
interface IUser{
T createUser(
Map<String, String> headers,
String userName
)
}
This will be ...
0
votes
0
answers
33
views
Micronaut Http Request Perform Errors on Encoding Body as Form-Data
I am trying to perform an HTTP request in form-data format to an external server using the Micronaut HTTP Client. However, when I make the request, the server returns an error as if the body is ...
0
votes
0
answers
9
views
Micronaut Disabling certificate verifications
Is it possible to configure http client to disable certificate verification for specific clients? I couldn't find it on documentation.
0
votes
1
answer
22
views
postgres json column type with Micronaut
json_build_object does exactly what I want except the resulting JSON object is being encoded in my Micronaut controller's JSON response output as:
"active": {
"type": "json&...
0
votes
0
answers
22
views
Micronaut Serverless lambda not able to load partition metadata
I'm using Micronaut Java and building my image as graalvm and deploying that image on aws Lambda and internally code is interacting with dynamodb from lambda.
So, whenever code is reaching to dynamodb....
0
votes
0
answers
45
views
Micronaut Bean Not Found on Websphere
I have a grails 5.3.6 application running on java 8_261.
I am using Intellij ultimate with grails, groovy and spring plugins.
Whenever I do grails run-app, the app launches normally and opens in my ...
0
votes
0
answers
24
views
Micronaut Http Client PKIX and trustAnchors Cerificate errors
I am using Windows OS, developing in IntelliJ IDE, using JDK 22 and Micronaut.
I am trying to integrate with an application that requires a custom trusted root CA certificate, and this started to ...
0
votes
0
answers
17
views
How to provide multiple query-params in micronaut http-client
I am calling an external api from my kotlin micronaut application using micronaut-http-client. The external-api requires multiple query-params, so I defined my interface like below:
@Client("...
0
votes
0
answers
26
views
Populating properties into application context with PropertySource
I was wondering if in Micronaut it is possible to achieve similar functionality like in Sppring where by creating custom annotation we are able to populate custom properties into the application ...
0
votes
0
answers
15
views
Micronaut custom SecurityRule is never called
I am trying to implement a security rule in Micronaut 4.5.0 like so:
package test;
import static io.micronaut.security.utils.LoggingUtils.debug;
import io.micronaut.context.annotation.Requires;
...
0
votes
0
answers
19
views
Micronaut - load configs under multiple names in multi maven module project
I'm trying to split up a micronaut project into multiple maven modules so I can have separate smaller executables for pub/sub workers.
Layout now has three modules
Api
Core
Workers
Workers and Api ...
1
vote
1
answer
31
views
How to enable jackson custom serialiser in micronaut?
I have usecase to enable custom serialization for one of the field. I'm trying to implement the same using below snippet.
@JsonSerialize(using = CustomSerializer.class)
private CustomDTO customDto;
...
0
votes
0
answers
20
views
io.micronaut.context.exceptions.DependencyInjectionException: Failed to inject value for parameter [enabled] of class:.DatahubHttpClient
I have an issue when i run micronaut test. i got stuck with this kind of error:
io.micronaut.context.exceptions.DependencyInjectionException: Failed to inject value for parameter [enabled] of class: ...
0
votes
1
answer
25
views
Micronaut R2DBC Parent Child Relationship Parent ID not getting inserted into child (One to Many)
I am new to R2DBC and I have a fairly standard parent child relationship Person / Address and when attempting to save a person object with an address both the person and the address get saved but the ...
1
vote
0
answers
19
views
how to use multiple versions of maven dependency [duplicate]
In my Java micronaut microservice, I want to use a version of a maven dependency for my main code and another different version of the same maven dependency for unit tests code. So, how can I achieve ...