2016年3月3日 | Leave a comment 问题: Tomcat Jersey filter 没有起作用,没有执行filter(…) 解决: @ApplicationPath("api") public class App extends ResourceConfig { public App(){ this.register(CrossOriginResourceSharingFilter.class); .... } .... } 12345678 @ApplicationPath("api")public class App extends ResourceConfig {public App(){this.register(CrossOriginResourceSharingFilter.class);....}....}