Closed aruld closed 4 years ago
Your dependencies in common are incorrect:
compile "io.micronaut:micronaut-core:1.2.5"
should be
compile "io.micronaut:micronaut-inject:1.2.5"
annotationProcessor "io.micronaut:micronaut-inject-java:1.2.5"
Thank you @jameskleeh for helping with this.
Thanks for reporting an issue for Micronaut, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.
NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.
Task List
Steps to Reproduce
The repository definition in the service module looks like this:
It should not be required to annotate Direction JPA entity with @Introspected.
Run consul:
docker run -p 8500:8500 consul:1.4.4
Run the service from maps-service dir:
./gradlew run
Run the gateway from maps-gateway dir:
./gradlew run
Invoke the API using curl:
curl "http://localhost:8080/api/maps/fastest?src=apple&dest=google"
Expected Behaviour
Actual Behaviour
It fails with an introspection error on the client side:
Service errors with this exception trace:
Environment Information
Example Application