java - Configuration class that extends Application in REST -


the class extends application in rest

import javax.ws.rs.applicationpath; import javax.ws.rs.core.application; import java.util.arrays; import java.util.hashset; import java.util.set;  @applicationpath("/rest-prefix") public class applicationconfig extends application {     public set<class<?>> getclasses() {         return new hashset<class<?>>(arrays.aslist(simplerestpojo.class, simplerestejb.class));     } } 

what's function? why should extend application class class nothing?

if don't, ide throws warning on rest classes, warning doesnt implement jersey or ee services.

whay should extend application class, , tutorials without other explanation.

thank you.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -