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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -