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.

1070 questions
14
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…
12
votes
1 answer

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
  • 151
  • 1
  • 7
11
votes
1 answer

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
  • 3,425
  • 3
  • 24
  • 38
10
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.
9
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
  • 798
  • 1
  • 9
  • 20
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,384
  • 4
  • 37
  • 86
8
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
  • 2,519
  • 13
  • 54
  • 105
8
votes
2 answers

Swagger for Micronaut with maven

I want to switch to the Micronaut framework from Spring Boot 2. And I am struggling with the Swagger settings. In Spring Boot 2 project I have the following dependencies: io.springfox
Eugene Mamaev
  • 785
  • 7
  • 24
7
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
  • 20,658
  • 5
  • 57
  • 87
7
votes
2 answers

How do you run micronaut from gradle with local properties

I want to run Micronaut server from Gradle command line with "local" environment variables. The regular command .\gradlew.bat run will use default variables defined in application.yml file. I want to override some of them with values for my local…
Aziris
  • 107
  • 1
  • 8
7
votes
2 answers

Can I use spring data jpa with Micronaut?

I would like to extend my TestRepository interface with JpaRepository and utilize the features such as jpa method queries, paging and sorting without manually defining entity manager bean and without writing any sql. P.S. In micronaut project
Sanjari
  • 385
  • 2
  • 16
6
votes
1 answer

Micronaut - Resolve place holders in properties file

How to resolve placeholders in properties file similar to the below one. I am using an external properties file - dev.properties with entries similar to below: db.database: testdb db.user: testuser db.password: password db.dev_server:…
kTest
  • 207
  • 1
  • 8
6
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,110
  • 10
  • 21
6
votes
3 answers

How can I install Micronaut CLI?

I cannot find in the Micronaut documentation a way to install mn CLI. There many usage examples, but not a how to install it.
5
votes
1 answer

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, whenver 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. This…
Jim C
  • 2,519
  • 13
  • 54
  • 105
1
2 3
71 72