2/14/2023 0 Comments Svs code intellij key bindingsAdditional subpaths can also be mapped to Java methods (for example, /hello/carl could map to a different Java method). Other HTTP methods such as POST or DELETE can also be associated with Java methods. ![]() In the class below, there is only one method which will respond to an HTTP GET at the toplevel /hello URL. HelloWorldResource.java is a class that associates the /hello URL path with a set of methods. This particular service will return a hardcoded text string to the caller and can be tested by putting a URL in a browser. ![]() The minimal JAX-RS service requires a resource, the source file that will implement the service, and an application which makes WildFly aware of the set of services. With the project set up, the next step is to add some code. (The web.xml isn't required for this version of JavaEE.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |