Newer
Older
CosmosServer / src / main / java / com / example / cosmos_serversb / JerseyConfig.java
  1. package com.example.cosmos_serversb;
  2.  
  3. import javax.ws.rs.ApplicationPath;
  4.  
  5. import org.glassfish.jersey.server.ResourceConfig;
  6. import org.springframework.stereotype.Component;
  7.  
  8. @Component
  9. @ApplicationPath("/rest")
  10. public class JerseyConfig extends ResourceConfig {
  11. public JerseyConfig() {
  12. packages("com.example.cosmos_serversb.resources");
  13. }
  14. }