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.contextPath' property. I haven't been able to find anything in the micronaut docs here. I would like to set a base path for my microservice and my 'bar' controller (e.g. http://domain/foo/bar). In Spring this would look like
server:
servlet:
context-path: foo
I am currently using micronaut 1.0.0.M4. I appreciate the help.
You can set the context path in the configuration with
micronaut:
server:
context-path: /my-path
Documentation: link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With