Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit db5a768

Browse files
author
David Bennett
committed
Fixed @path annotation in 'Rules of Injection' example.
The previous code @path("id: \d+") does not work.
1 parent 68b0798 commit db5a768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/main/docbook/jaxrs-resources.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ public class ItemResource {
888888
<para>
889889
<example>
890890
<title>Injection</title>
891-
<programlisting language="java" linenumbering="numbered">@Path("id: \d+")
891+
<programlisting language="java" linenumbering="numbered">@Path("{id:\\d+}")
892892
public class InjectedResource {
893893
// Injection onto field
894894
@DefaultValue("q") @QueryParam("p")

0 commit comments

Comments
 (0)