Newer
Older
JerseyDemo / src / main / java / com / example / springtest / demo / JerseyConfig.java
package com.example.springtest.demo;

import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

import javax.ws.rs.ApplicationPath;

@Component
//@ApplicationPath("/demo")
public class JerseyConfig extends ResourceConfig {

    public JerseyConfig() {
        packages("com.example.springtest.demo.resources");
    }
}