Replies: 2 comments 1 reply
-
I also found the following log that may be helpful: Especially 11:51:19.595 [default-nioEventLoopGroup-1-3] TRACE i.m.context.DefaultApplicationContext$RuntimeConfiguredEnvironment - No value found for property: endpoints.routes.enabled I guess something missing to enable endpoints route. I have no idea what cause this and how to correct it. |
Beta Was this translation helpful? Give feedback.
-
do you have a sample app? |
Beta Was this translation helpful? Give feedback.
-
As I migrate our current application to micronaut 4, the following code was working with micronaut 3 but got into NOT_FOUND with micronaut 4. It's really puzzling:
Controller:
@context
@controller("/")
@ExecuteOn(TaskExecutors.BLOCKING)
@validated
@requires(env = "test")
public class TestController {
…
Client:
@client("/")
@requires(env = "test")
public interface TestClient {
..
Test:
@MicronautTest(environments = "binding-test")
public class BindingAppTest {
The test expects to get OK but actually got NOT_FOUND. The log shows:
15:43:06.753 [default-nioEventLoopGroup-1-3] DEBUG io.micronaut.http.server.netty.NettyRequestLifecycle - Request GET /endpoint
15:43:06.754 [default-nioEventLoopGroup-1-3] DEBUG io.micronaut.http.server.RequestLifecycle - No matching route: GET /endpoint
What makes the controller not matched with route in micronaut 4?
Beta Was this translation helpful? Give feedback.
All reactions