Auto-configuring controllers and repositories
I auto-configured Spring Boot REST controllers by adding their names to the spring.factories file. On the other hand, I did not have much luck with auto-configuring Mongo collections (yet).
I then ran the consumer’s codebase and used Postman to hit the newly-offered endpoints. Below is the response seen in Postman:
{ "error": { "IllegalArgumentException": "Couldn't find PersistentEntity for type class yourTLD.yourOrg.yourProject.somePackage.SomeModel!" } } I thought the Mongo repository was not auto-configured, so I went to check the consumer’s logs.
Continue reading "Auto-configuring controllers and repositories"