记录一下jsoup Unhandled content type异常 异常表现 完整的异常信息 org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml. Mimetype=image/png, URL 应该是请求头里面的请求类型(ContextType)不符合要求。 解决方法 ignoreContentType(true)