@@ -35,7 +35,7 @@ Each is discussed in more detail below. Java 21 or later is required.
3535For example, the following service implements some simple mathematical operations:
3636
3737``` java
38- @WebServlet (urlPatterns = " /math/*" , loadOnStartup = 1 )
38+ @WebServlet (urlPatterns = { " /math/*" } , loadOnStartup = 1 )
3939@Description (" Math service." )
4040public class MathService extends WebService {
4141 @RequestMethod (" GET" )
@@ -139,7 +139,7 @@ public List<Pet> getPets(@Required String owner) throws SQLException {
139139The ` Name ` annotation can be used to associate a custom name with a method parameter. For example:
140140
141141``` java
142- @WebServlet (urlPatterns = " /members/*" , loadOnStartup = 1 )
142+ @WebServlet (urlPatterns = { " /members/*" } , loadOnStartup = 1 )
143143public class MemberService extends WebService {
144144 @RequestMethod (" GET" )
145145 public List<Person > getMembers (
@@ -265,7 +265,7 @@ GET http://localhost:8080/kilo-test/catalog.html
265265Implementations can provide additional information about service types and operations using the ` Description ` annotation. For example:
266266
267267``` java
268- @WebServlet (urlPatterns = " /catalog/*" , loadOnStartup = 1 )
268+ @WebServlet (urlPatterns = { " /catalog/*" } , loadOnStartup = 1 )
269269@Description (" Catalog service." )
270270public class CatalogService extends AbstractDatabaseService {
271271 @RequestMethod (" GET" )
0 commit comments