Skip to content

Commit

Permalink
fix: Scan for WebServlet annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mat3e committed Jul 11, 2024
1 parent 32ab797 commit 1bf494e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions embedded/ee10-servlet-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@
<version>${jetty.version}</version>
</dependency>

<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-annotations</artifactId>
<version>${jetty.version}</version>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static Server newServer(int port)
context.setBaseResource(baseResource);
context.setContextPath("/");
context.setWelcomeFiles(new String[]{"index.html", "welcome.html"});
context.setAttribute("org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern", ".*/");
context.setParentLoaderPriority(true);
server.setHandler(context);
return server;
Expand Down

0 comments on commit 1bf494e

Please sign in to comment.