摘要: Unable to read TLD "META-INF/c.tld" from JAR file CreationTime--2018年7月18日17点46分 Author:Marydon 1.情景描述 tomcat可以正常启动项目,但是却跑不起来,报错信息如下: Unable to read T 阅读全文
posted @ 2018-07-18 17:54 Marydon 阅读(1311) 评论(0) 推荐(0)
摘要: 说明: 在文件上传时,如果想通过mimetype来控制上传的文件类型,可以直接使用“.后缀名”的方式来实现,不必来找文件格式对应的mimetype。 Tomcat/conf/web.xml中有 用于设置响应类型 展示 < mime-mapping > < extension >123 < mime- 阅读全文
posted @ 2018-07-18 16:30 Marydon 阅读(961) 评论(0) 推荐(0)
摘要: 1.设置响应内容类型 方式一 response.setContentType(contentType); 方式二 response.setHeader("Content-Type", contentType); response.setContentType(MIME)的作用: 让服务器告诉浏览器它 阅读全文
posted @ 2018-07-18 11:16 Marydon 阅读(1830) 评论(0) 推荐(0)