From ca79fe6d0fb9b1fee1cc884f9ffaa929d7e5afaa Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Thu, 17 Oct 2024 07:14:04 -0400 Subject: [PATCH] Update README.md. --- README.md | 4 ++-- kilo-server/src/main/java/org/httprpc/kilo/IndexServlet.java | 2 +- .../src/main/java/org/httprpc/kilo/test/TestService.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4cba11f93..abd0e3fdb 100644 --- a/README.md +++ b/README.md @@ -458,7 +458,7 @@ Path variables and body content are handled as described for [`WebService`](#web Note that proxy types must be compiled with the `-parameters` flag so their method parameter names are available at runtime. ## JSONEncoder and JSONDecoder -The `JSONEncoder` and `JSONDecoder` classes are used internally by `WebService` and `WebServiceProxy` to serialize and deserialize request and response data. However, they can also be used directly by application logic. For example: +The `JSONEncoder` and `JSONDecoder` classes are used internally by `WebService` and `WebServiceProxy` to process request and response data. However, they can also be used directly by application logic. For example: ```java var map = mapOf( @@ -568,7 +568,7 @@ var templateEncoder = new TemplateEncoder(Examples.class, "example.html"); templateEncoder.write(map, System.out); ``` -Given the following as input: +Given the following template as input: ```html diff --git a/kilo-server/src/main/java/org/httprpc/kilo/IndexServlet.java b/kilo-server/src/main/java/org/httprpc/kilo/IndexServlet.java index 02201e77e..bd4ce8a1d 100644 --- a/kilo-server/src/main/java/org/httprpc/kilo/IndexServlet.java +++ b/kilo-server/src/main/java/org/httprpc/kilo/IndexServlet.java @@ -30,7 +30,7 @@ /** * Generates an index of all active services. */ -@WebServlet(urlPatterns = {""}, loadOnStartup = 1) +@WebServlet(urlPatterns = {""}, loadOnStartup = Integer.MAX_VALUE) public class IndexServlet extends HttpServlet { /** * Generates the service index. diff --git a/kilo-test/src/main/java/org/httprpc/kilo/test/TestService.java b/kilo-test/src/main/java/org/httprpc/kilo/test/TestService.java index fccb631e9..39cf8e986 100644 --- a/kilo-test/src/main/java/org/httprpc/kilo/test/TestService.java +++ b/kilo-test/src/main/java/org/httprpc/kilo/test/TestService.java @@ -49,7 +49,7 @@ import static org.httprpc.kilo.util.Collections.*; -@WebServlet(urlPatterns = {"/test/*"}, loadOnStartup = 0) +@WebServlet(urlPatterns = {"/test/*"}, loadOnStartup = 1) @MultipartConfig public class TestService extends AbstractDatabaseService { public interface A {