I am trying to use JerseyConfig
class in existing sping boot application but for some reason when I add this configuration:
@Component
public class JerseyConfig extends ResourceConfig {
public JerseyConfig() {
register(Users.class);
register(Groups.class);
property("SCIM_IMPLEMENTATION_INSTANCE", new JerseyApplication());
}
}
The @RestController endpoints do not work as expexted anymore. All of them return 404 after applying this JerseyConfig
class. All of the Jersey endpoints work fine.
Can I use JAX rs endpoints (in my case I use Jersey) and @RestCotroller in the same application? I need some configuration for separating my existing REST servcices from the new JAX rs endpoints. If anybody can help I will really appreciate it. Thank you!