I am trying to create a custom query from the Spring guide : Accessing MongoDB Data with REST according to the Reference 4.4 Custom Implementations. But my custom method is
This is by design. As soon as you start implementing a repository method manually we cannot know whether GET
or POST
is the right HTTP method as whether the execution is idempotent depends on how you implement it.
So the way to go would be implementing a custom controller and expose those methods using the adequate HTTP method. That said, there's a ticket in our tracker to provide means to define the way these methods should be exposed as well.