micronaut Questions

4

Solved

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 ...
Clownery asked 9/10, 2019 at 16:26

4

I have a micronaut app that starts up with a Scylla database and I want initialize a keyspace and a columnfamily so that people can run the app locally and have it ready to use. For my initial appr...
Filefish asked 28/3, 2023 at 16:1

3

I am trying to move from spring to micronaut. Some of the property values are encrypted, and we are currently using the spring-boot-jasypt, described below, to help decrypt the property values when...
Beestings asked 23/1, 2020 at 0:5

13

Solved

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\W...
Hemoglobin asked 8/11, 2020 at 3:53

5

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 ...
Nicodemus asked 16/1, 2021 at 7:46

2

I've been using Spring Boot for a long time. I'm working on Micronaut now. I'm used to using Sleuth to print trace and span IDs automatically on logs. What is the sleuth equivalent in Micronaut? If...
Pharynx asked 3/3, 2021 at 9:38

3

Solved

I'm new to micronaut and server side programming in general. The micronaut documentation, unfortunately, does not make a lot of sense to me, as I do not have a Java background. A lot of the terms l...
Ventris asked 20/7, 2020 at 15:47

5

Solved

I would like to configure logging appender based on the environment, for example while running in production I would like to configure an appender that would send log to elasticsearch but while on ...
Aida asked 21/7, 2019 at 18:27

3

I'm using Micronaut 3.1.3 together with Gradle 7.2 to build my project. After switching to Gradle 7.3, built breaks emitting some context-free error message: $ ./gradlew clean build Executed by Gra...
Knockout asked 12/11, 2021 at 8:30

1

Solved

I'm trying to find the correct way to execute some startup code which reads and uses tomcat's context.xml when running micronaut as a servlet. I've tried creating a @Singleton that implements Appli...
Gainful asked 6/2, 2023 at 1:59

2

Solved

I'm currently working with: Micronaut 3.7.3 RabbitMQ 3.11.2 Spock Groovy / Java 17 I'm implementing a rabbitmq consumer for a simple demo project following the guidelines from micronaut project (...
Dimphia asked 16/11, 2022 at 16:7

2

Solved

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...
Rapprochement asked 3/11, 2018 at 14:5

2

Solved

I need to set a param as Not Required in my request. I tried: @Get(value = "/list/{username}") HttpResponse<?> list(String username, @QueryValue(value = "actionCode") St...
Tartu asked 30/9, 2020 at 20:5

2

I am modularising a monolith developed in Java, It utilizes the Micronaut framework and Gradle as a Build tool. As the title suggests, It utilizes Liquibase for database migrations. The old structu...
Jessikajessup asked 4/6, 2021 at 9:15

2

Solved

I created a new Micronaut from the CLI and tinkered around a bit then realized that I could add features from the cli but it seems to only be an option when calling create-app. Is there a way to a...
Argentinaargentine asked 2/11, 2018 at 10:28

1

I have setup a simple test Controller: @Controller("/test") public class SampleController { @Get(value = "1", produces = MediaType.TEXT_PLAIN) public String helloWorld1() { r...
Pantry asked 23/5, 2021 at 11:12

3

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...
Judie asked 16/9, 2018 at 19:10

2

Solved

Update: Link to repo is moved to answer because repo is now updated with code from answer below. Problem description Current code is working, but it is using gcloud beta emulators pubsub from googl...
Strasbourg asked 4/9, 2021 at 19:23

4

Solved

I am migrating a tiny Spring Boot application to Micronaut 1.0.1 and I was wondering if there is an equivalent for org.springframework.core.io.Resource and their implementation such as ClasspathRes...
Flotation asked 19/11, 2018 at 7:33

3

Solved

SAMPLE PROJECT AVAILABLE HERE: https://github.com/codependent/micronaut-aws-lambda-proxy-graal I have a Micronaut application deployed on Amazon AWS as a Lambda function. It is compiled into a Gra...

4

How does one go about setting a context path for a micronaut microservice? I want to do something similar to what is available in the Spring Framework where you can set the 'server.servlet.contextP...
Thrave asked 13/8, 2018 at 19:59

2

Solved

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 s...
Rave asked 9/9, 2019 at 13:32

3

Solved

I have a Grails 4 application providing a REST API. One of the endpoints sometimes fail with the following exception: io.micronaut.http.client.exceptions.ReadTimeoutException: Read Timeout at io....
Towill asked 10/2, 2020 at 15:30

1

Solved

I would like to take advantage of the 'Declarative HTTP Client' feature of Micronaut. I am having a difficult time understand how to pass in a dynamic header value and was wondering if this is even...
Compress asked 9/7, 2021 at 18:35

1

Solved

I'm trying out the Micronaut Application as a Graalvm native image found here. But when I'm running the ./gradlew buildNativeLambda I'm having these exception: Error: Image build request failed wit...
Pentateuch asked 27/6, 2021 at 7:17

© 2022 - 2025 — McMap. All rights reserved.