1,Eclipse建立Tomcat服务 1.1 新建Server 首先这里是指,jee版的Eclipse.Eclipse是没有像MyEclipse那样集成Tomcat的,需要我们自己设置. New -> Other -> Server ,然后选择Apache下的tomcat的版本. 注意:如果Next或Finish按钮都是灰的,那么需要到Windw- > Preferences -> Server -> Runtime Environments 中进行设置.需要增加爱一个to
HTTP_CACHE_FILENAME为缓存地址根路径: private final String HTTP_CACHE_FILENAME = "HttpCache"; private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() { @Override public Response intercept(Chain chain) throws IOException { R