diff --git a/archetype/src/main/resources/archetype-resources/src/main/java/jakarta/hello/HelloApplication.java b/archetype/src/main/resources/archetype-resources/src/main/java/jakarta/hello/HelloApplication.java new file mode 100644 index 00000000..7b1b2c74 --- /dev/null +++ b/archetype/src/main/resources/archetype-resources/src/main/java/jakarta/hello/HelloApplication.java @@ -0,0 +1,9 @@ +package ${package}.jakarta.hello; + +import ${eePackage}.ws.rs.core.Application; +import ${eePackage}.ws.rs.ApplicationPath; + +@ApplicationPath("rest") +public class HelloApplication extends Application { + +} diff --git a/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml index 0fcfa57f..472d2242 100644 --- a/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ b/archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml @@ -15,13 +15,6 @@ xmlns="$xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="$schemaLocation"> - - ${eePackage}.ws.rs.core.Application - - - ${eePackage}.ws.rs.core.Application - /rest/* - index.html