我使用druid 监控程序的时候,发现给我返回的是源码
查看一下response 头信息
Cache-Control:no-cache, no-store, max-age=0, must-revalidate
Content-Length:3379
Expires:0
Pragma:no-cache
Server:Jetty(8.1.16.v20140903)
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-XSS-Protection:1; mode=block
明显缺少content-type
问题来了
spring mvc 统一设置content type
配置druid 走的servlet 不能设置content-type ,
问题转化为 如何druid 设置conent-type?
http://blog.csdn.net/leixiaohua1020/article/details/12530683