Spring rest docs: Error when creating custom TemplateSnippet
问题 I want to create a custom HttRequestSnippet with spring rest docs. Because I want the url to be shown as /accounts/{id} and not /accounts/1 , I have to create a custom snippet class. I tried two approaches: I tried to get this going in general. Therefore I pass the uri as a parameter to the class. public class CustomHttpRequestSnippet extends TemplatedSnippet { public CustomHttpRequestSnippet(String uri) { super("custom", Collections.singletonMap("path",uri)); } @Override protected Map<String