当前位置: 首页 > news >正文

有个人免费网站吗赚钱黑渠道

有个人免费网站吗,赚钱黑渠道,洛阳制作网站的公司哪家好,做外贸网站公司哪家今天碰到个奇怪问题,改了个页面标题再打包布署GeoServer发现调用WTMS服务失败,请求返回状态码200,返回包大小0,使用postman模拟请求是可以正常返回图片的。 跟之前版本对比如下: 正常Response请求: HTTP/1.1 200X-Fr…

今天碰到个奇怪问题,改了个页面标题再打包布署GeoServer发现调用WTMS服务失败,请求返回状态码200,返回包大小0,使用postman模拟请求是可以正常返回图片的。

跟之前版本对比如下:

正常Response请求:

   HTTP/1.1 200X-Frame-Options: SAMEORIGINX-Content-Type-Options: nosniffgeowebcache-tile-index: [13591, 9726, 14]Cache-Control: no-cache, no-store, must-revalidatePragma: no-cacheExpires: 0geowebcache-cache-result: HITgeowebcache-tile-index: [13591, 9726, 14]geowebcache-tile-bounds: 13205872.500935059,3752140.8439404294,13208318.485839844,3754586.828845214geowebcache-gridset: EPSG:3857geowebcache-crs: EPSG:3857Last-Modified: Wed, 08 Jan 2025 03:40:58 GMTContent-Disposition: inline; filename=geoserver-dispatch.imageContent-Type: image/pngContent-Length: 188615Date: Thu, 27 Feb 2025 05:48:49 GMTKeep-Alive: timeout=20Connection: keep-alive

异常Response请求:

   HTTP/1.1 200X-Frame-Options: SAMEORIGINX-Content-Type-Options: nosniffgeowebcache-tile-index: [13591, 9726, 14]Cache-Control: no-cache, no-store, must-revalidatePragma: no-cacheExpires: 0geowebcache-cache-result: HITgeowebcache-tile-index: [13591, 9726, 14]geowebcache-tile-bounds: 13205872.500935059,3752140.8439404294,13208318.485839844,3754586.828845214geowebcache-gridset: EPSG:3857geowebcache-crs: EPSG:3857Last-Modified: Wed, 08 Jan 2025 03:40:58 GMTContent-Disposition: inline; filename=geoserver-dispatch.imageContent-Type: image/pngContent-Length: 188615Date: Thu, 27 Feb 2025 05:48:49 GMTKeep-Alive: timeout=20Connection: keep-alive

发现异常中没有:Access-Control-Allow-Origin
才想起来之前好像配置过跨域:

修改跨域:web.xml

注意如果按deepseek推荐使用org.eclipse.jetty.servlets.CrossOriginFilter这个类需要添加jar包(jetty-servlets-9.4.56.v20240826.jar, jetty-util-9.4.56.v20240826.jar)

下面我推荐tomcat的,不用加jar包

<!-- Uncomment following filter to enable CORS in Tomcat. Do not forget the second config block further down. --><filter><filter-name>cross-origin</filter-name><filter-class>org.apache.catalina.filters.CorsFilter</filter-class><init-param><param-name>cors.allowed.origins</param-name><param-value>*</param-value></init-param><init-param><param-name>cors.allowed.methods</param-name><param-value>GET,POST,PUT,DELETE,HEAD,OPTIONS</param-value></init-param><init-param><param-name>cors.allowed.headers</param-name><param-value>*</param-value></init-param></filter><!-- Uncomment following filter-mapping to enable CORS --><filter-mapping><filter-name>cross-origin</filter-name><url-pattern>/*</url-pattern></filter-mapping>

完了记录清理Tomcat缓存:apache-tomcat-8.5.99\work\Catalina\localhost
重启Tomcat就可以正常使用。

如果需要修改缓存目录,修改geoserver中web.xml,增加

   <context-param><param-name>GEOSERVER_DATA_DIR</param-name><param-value>E:\map\geoserver-2.15.0\webapps\geoserver\data</param-value></context-param><context-param><param-name>GEOWEBCACHE_CACHE_DIR</param-name><param-value>E:\map\geoserver-2.15.0\cache</param-value></context-param> 
http://www.yayakq.cn/news/316685/

相关文章:

  • 赣州热门网站wordpress 附件上传插件下载失败
  • 网站建设公司的介绍wordpress编辑器百度
  • 安装php网站网页设计网站模板素材
  • 手机上怎么建设网站wordpress 后台很慢
  • 专业做网站的软件排名网
  • 管理系统网站模板wordpress分类目录优化
  • 个人信息网站模板WordPress文字黑条
  • 如皋建设局网站企业宣传片制作公司哪家好
  • cms做网站可以做些什么网站做网站简单需要什么
  • 怎么做新网站的推广手机网站建立免费平台
  • 微信小程序应用市场图片网站该如何做seo优化
  • 濮阳网站公司网站开发工程师就业形势
  • 漫画网站建设龙溪网站建设企业
  • 中国太平保险集团官方网站威海网站建设哪家好
  • 邢台建设网站公司wordpress采集审核
  • 织梦php网站模板修改淮南装饰公司网站建设
  • 深圳贝尔利网站建设公司设计专业所需网站
  • wordpress页面加载js宁波seo怎么做推广渠道
  • 阿里云网站域名绑定教育咨询
  • 蓬莱住房和规划建设管理局网站wordpress指定分类主动推送百度
  • 政务咨询投诉举报网站建设推广计划a设置了短语否定匹配关键词为招聘
  • 南京做网站南京乐识好wordpress网页如何写
  • 主机网站wordpress调用内容代码
  • 银川网站开发公司电话山东烟台建设厅网站
  • 申请自己的网站手机app软件制作工具
  • 移动网站开发课程设计百度推广客户端
  • 哪里有制作网站服务seo站长查询
  • 介绍自己的家乡遵义网站建设免费网站开发
  • 太极馆如何做网站旅游网站开发需求文档模板下载
  • 南宁网站网站建设打开这个你会感谢我的网站