Questions tagged [micronaut]
Micronaut is a JVM framework for building web applications with a strong focus on microservice applications.
micronaut
1,826
questions
0
votes
0
answers
17
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
21
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
41
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
16
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 certificate, and this started to generate an error of
io....
0
votes
0
answers
15
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
13
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
28
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
16
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
0
answers
23
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 ...
0
votes
0
answers
28
views
Micronaut login redirecting from a docker container
I have a pair of Micronaut services secured via a Keycloak docker image. Running it normally, via ./gradlew run it authenticates with Keycloak at localhost:9080 and can successfully do both standard ...
1
vote
0
answers
20
views
Micronaut @Error is not catching HttpStatus.INTERNAL_SERVER_ERROR
I'm working on a way to handle errors that should show an error page in HTML format. But it's not working, and instead of showing the error page, it's giving back a default JSON message saying {"...
0
votes
0
answers
24
views
Issue implementing Micronaut JWT
I'm trying to implement the follow the Micronaut guide at https://guides.micronaut.io/latest/micronaut-security-jwt-maven-java.html
When I get to https://guides.micronaut.io/latest/micronaut-security-...