Skip to content

Commit 491bd74

Browse files
committed
Document Jersey's package scanning limitations
Closes gh-7496
1 parent 5e60443 commit 491bd74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,12 @@ all the endpoints:
20972097
}
20982098
----
20992099

2100+
WARNING: Jersey's support for scanning executable archives is rather limited. For example,
2101+
it cannot scan for endpoints in a package found in `WEB-INF/classes` when running an
2102+
executable war file. To avoid this limitation, the `packages` method should not be used
2103+
and endpoints should be registered individually using the `register` method as shown
2104+
above.
2105+
21002106
You can also register an arbitrary number of beans implementing `ResourceConfigCustomizer`
21012107
for more advanced customizations.
21022108

0 commit comments

Comments
 (0)