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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -