November 2017
Intermediate to advanced
420 pages
10h 29m
English
In the earlier ApplicationConfig class, you will also notice a call to the ResourceConfig::packages(String... packages) method with an array of packages as the parameter. This tells the runtime to scan the input packages for discovering the JAX-RS components (which include REST resources and provider components) used in the application. You can also use the ResourceConfig::register() method to register an individual JAX-RS component as appropriate.