- package com.example.cosmos_serversb;
- import javax.ws.rs.ApplicationPath;
- import org.glassfish.jersey.server.ResourceConfig;
- import org.springframework.stereotype.Component;
- @Component
- @ApplicationPath("/rest")
- public class JerseyConfig extends ResourceConfig {
- public JerseyConfig() {
- packages("com.example.cosmos_serversb.resources");
- }
- }