Skip to content

Commit 74bb188

Browse files
farnulfojansupol
authored andcommitted
Update JerseyServletContainerInitializer doc (#3913)
Replacing @PathPrefix with correct annotation @ApplicationPath Signed-off-by: farnulfo <[email protected]>
1 parent b041944 commit 74bb188

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

containers/jersey-servlet/src/main/java/org/glassfish/jersey/servlet/init/JerseyServletContainerInitializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ themselves of container-supplied class scanning facilities.
6868
- If an application subclass is present that is not being handled by an
6969
existing servlet then the servlet added by the ContainerInitializer MUST be
7070
named with the fully qualified name of the Application subclass. If the
71-
Application subclass is annotated with @PathPrefix and no servlet-mapping
71+
Application subclass is annotated with @ApplicationPath and no servlet-mapping
7272
exists for the added servlet then a new servlet mapping is added with the
73-
value of the @PathPrefix annotation with "/*" appended otherwise the existing
74-
mapping is used. If the Application subclass is not annotated with @PathPrefix
73+
value of the @ApplicationPath annotation with "/*" appended otherwise the existing
74+
mapping is used. If the Application subclass is not annotated with @ApplicationPath
7575
then the application MUST be packaged with a web.xml that specifies a servlet
7676
mapping for the added servlet. It is an error for more than one Application
7777
to be deployed at the same effective servlet mapping.

0 commit comments

Comments
 (0)