java - Configuring the URL path for CrudRepository -
a repository
@repositoryrestresource(path = "app/cities",collectionresourcerel = "app/cities") public interface cityrepository extends crudrepository<city, integer> { list<city> findbyname(@param("name") string name); } mapping in url http://localhost:8080/cities.
how can change path http://localhost:8080/api/cities.
the annotation
@repositoryrestresource(path = "app/cities",collectionresourcerel = "app/cities") does not help.
Comments
Post a Comment