Java Magazine, Mar/Apr 2018
ORACLE COM JAVAMAGAZINE MARCH APRIL 2018 20 microservices and containers @ Column name JOB_ ID private Integer jobId @ Size max 20 @ Column name STATUS private String status public AcmeEmployee Getters and Setters Now create an ApplicationConfig class inside of the org employeeservice package and place the REST configuration from Listing 5 into it This class bootstraps JAX RS by setting up an application path of rest meaning that RESTful web services will be invoked if a URL contains the path rest The class also makes JAX RS resource classes available for use by the application by returning them via the getClasses method Listing 5 import java util Set import javax ws rs core Application @ javax ws rs ApplicationPath rest public class ApplicationConfig extends Application @ Override public Set Class getClasses Set Class resources new java util HashSet resources add org employeeservice AcmeEmployeeFacadeREST class return resources
You must have JavaScript enabled to view digital editions.