1.gradle构建web时报错:Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library 原因是rt.jar是受限访问的,需要把该jar包拷贝到项目的lib目录下,再执行gradle clean build 2.启动tomcat报错:jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offen…