ClientAbortException when using Jersey 2.13

后端 未结 4 1315
悲&欢浪女
悲&欢浪女 2020-12-29 10:10

I\'m using Jersey 2.13 in my web application for retrieving data async. There are some cases where requests take some time (i.E. when executing complex reports) until their

4条回答
  •  醉酒成梦
    2020-12-29 10:30

    After digging into the Jersey Coding I found out the the only way to archive this is by disabling the Jersey internal Logger. This can be done in the Class that extends ResourceConfig.

    @ApplicationPath("api")
    public class Application extends ResourceConfig {
    
        private final static Logger ORG_GLASSFISH_JERSEY_LOGGER = Logger
                .getLogger("org.glassfish.jersey");
        static {
            ORG_GLASSFISH_JERSEY_LOGGER.setLevel(Level.OFF);
        }
    }
    

提交回复
热议问题