Skip to content

Java generics: Map nested json response to Java objects

Scenario: I’m working with an unusual external API in which every attribute is a map with multiple values. In order to convert this response into simple Java objects, I had to do some dirty unboxing. Below is one of the typical java class. As you can see how I’m unboxing data from response and map…

405 Method Not Allowed when deploying artifact to Nexus

I am deploying an artifact to a Nexus snapshot repository that allows redeployment, using the maven command: but I have this error: Answer I have never seen a mvn deploy:deploy-file to a nexus/repo/browse URL: browse should not be used for deploying files, only for… browsing them. A typical call would b…

Dependency injection with @Inject and Interface in Quarkus

I’m trying to resolve dependency injection with Repository Pattern using Quarkus 1.6.1.Final and OpenJDK 11. I want to achieve Inject with Interface and give them some argument(like @Named or @Qualifier ) for specify the concrete class, but currently I’ve got UnsatisfiedResolutionException and not…