Questions tagged [micronaut]

Micronaut is a JVM framework for building web applications with a strong focus on microservice applications.

Micronaut is an open source framework for the JVM designed for rapid development of web applications, particularly microservices. Micronaut supports building applications in Java, Groovy, and Kotlin.

1684 questions
27
votes
1 answer

How to change default port(8080) of micronaut to something else?

How to change default port 8080 in Micronaut to something else? I use Micronaut for my project, and I cannot find the configuration for changing the port number.
RAJKUMAR NAGARETHINAM
  • 1,408
  • 1
  • 15
  • 26
25
votes
10 answers

Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory

For some unknown reason, whenever I run gradle clean build after I start my notebook it works as expected. When I try for the second time, I always get Unable to delete directory 'C:\_d\mycompany\WSs\demo\build' Failed to delete some children.…
Jim C
  • 3,957
  • 25
  • 85
  • 162
18
votes
2 answers

Overriding a dependency in a Micronaut test

I'm testing a Micronaut class that has a bean injected into it. In my test I provide a @MockBean class to override it. However, it seems Micronaut still injects the real dependency. @MicronautTest public class ClassUnderTestTest { @Inject…
Malcolm Crum
  • 4,345
  • 4
  • 30
  • 49
15
votes
1 answer

Getting cognito user pool username from cognito identity pool identityId

I am using AWS Congito User Pools for account management with a Cognito Identity Pool that has this User Pool as the Identity Provider. I'm using this to control access to an API through API Gateway that sends requests to Lambda. My Lambda is…
14
votes
3 answers

How to specify a profile in a Micronaut application?

I want to specify different types of configs depending on the environment that I will deploy the app. Like in Spring-boot in the yml file we can set the profile, I want to know if there is a way to do it in Micronaut.
tomas lingotti
  • 171
  • 1
  • 1
  • 7
12
votes
2 answers

How to configure Jackson to use SNAKE_CASE in Micronaut?

I have tried to configure jackson to accept JSON using SNAKE_CASE when using Micronaut, however, it doesn't recognize the property jackson.property-naming-strategy: SNAKE_CASE.
Bruno Barin
  • 193
  • 2
  • 8
11
votes
1 answer

How to store JSON object into PostgreSQL using JSONB data type inside table and PostgreSQL JDBC driver

I want to save following json object into PostgreSQL db table as jsonb { "fname":"john", "lname:"doe", } I am currenlty using PGObject to create object and set type to jsonb and pass value as json string Looking for a better approach with…
Swanand Keskar
  • 1,023
  • 1
  • 13
  • 27
11
votes
1 answer

Multiple get request parameters @PathVariable and @RequestAttribute with Micronaut?

I have a get function in my controller with differents parameters: myinterface.java: public interface MyInterface { @Get(value = "/bob/{name}/params?surname={surname}") String getMyParam ( @Parameter(name="name", required=true) …
3logy
  • 2,634
  • 8
  • 46
  • 99
11
votes
2 answers

How do I read application properties in Micronaut?

I integrated AWS SES API to my Micronaut Groovy application using guide send mail in micronaut and I am able send mails if I directly assign values to properties. I want to make it config driven hence have been trying to find ways to achieve that. I…
Aditya T
  • 1,566
  • 2
  • 13
  • 26
10
votes
1 answer

Is Micronaut Data with R2DBC a more scalable approach than classical “one thread per connection” model Micronaut Data JDBC

According to micronaut-data reactive guide, "... In the case of reactive execution and if the backing implementation is blocking, Micronaut Data will use the Configured I/O thread pool to schedule the query execution on a different thread. If the…
Jim C
  • 3,957
  • 25
  • 85
  • 162
10
votes
5 answers

How do I resolve error "No bean of type [io.micronaut.data.operations.PrimaryRepositoryOperations] exists" in micronaut application?

I am evaluating micronaut and am attempting to port a small application as a pilot project. I have run into a snag dealing with datasources/repositories. I have the following application.yml: micronaut: application: name:…
John Boone
  • 111
  • 1
  • 1
  • 6
10
votes
3 answers

Micronaut data : No backing RepositoryOperations configured for repository

I am getting this following exception when I try configuring micronaut-data with inmemory h2 database and Jpa. I have been following the documentation I created the project from command line with maven as build tool. I have the following …
pvpkiran
  • 25,582
  • 8
  • 87
  • 134
9
votes
4 answers

Global exception handling in micronaut Java

Looking for a better solution to handle the global exception in micronaut https://docs.micronaut.io/latest/guide/index.html#errorHandling Controller @Controller("/category") public class CategoryController { @Delete(uri = "/{id}") public…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
9
votes
2 answers

WindowsAnsiOutputStream class not found

When I start Micronaut project, in the IntelliJ it shows me at the Run box error that Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.WindowsAnsiOutputStream I know that is something which makes console output better, but I…
Andrew Sneck
  • 724
  • 9
  • 18
9
votes
2 answers

How can I configure the HTTP proxy for a Micronaut (1.1.4) HTTP client like the Spring Boot way?

Well after struggling a lot with Micronaut to dompted our proxies, I came to the idea to write a Spring Boot Application doing for the same purpose. For Spring Boot the HTTP proxy configuration is really straight forward and there are a lot examples…
3logy
  • 2,634
  • 8
  • 46
  • 99
1
2 3
99 100