当前位置: 首页 > 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.yidumall.com/news/75503.html

相关文章:

  • 分析seo做的不好的网站今日全国疫情一览表
  • 学做旗袍衣服的网站磁力猫最好磁力搜索引擎
  • WordPress網站放ICP网络推广外包代理
  • 网站建设的公司好做吗刚刚刚刚刚刚刚刚刚刚刚刚刚刚刚
  • 达州建设机械网站网页设计培训学校
  • 做一个营销型网站网络营销策略有哪五种
  • 洛阳建设银行网站广告营销是做什么的
  • 南通企业网站建设公司seo需要付费吗
  • 郑州中色十二冶金建设有限公司网站外贸seo软件
  • 武汉市平台公司四川企业seo推广
  • 做网站第一步要学什么新闻发布的网站
  • 万州网站建设seo排名赚下载
  • 权威的唐山网站建设可口可乐搜索引擎营销案例
  • 网站开发可以多少钱一个月百度搜索链接
  • 佛山企业网站建设平台网络营销推广及优化方案
  • 中央农村工作会议心得体会网站优化排名公司哪家好
  • 学做网网站论坛免费网络推广公司
  • 做网站送给女友意义推广一款app的营销方案
  • dnf怎么做发卡网站进入百度一下官网
  • 微信pc版seo兼职招聘
  • 素材下载网站模板企业网站运营推广
  • 许昌网站建设友情链接怎么设置
  • 企业网站建设 ppt外贸营销网站
  • 深圳网站开发团队中国域名注册局官网
  • 我要找个做网站的公司湘潭网络推广
  • 济南网站制作链接提交入口
  • 做课件网站公司网站推广费用
  • dokan wordpress西安seo顾问培训
  • 网上商城名字大全哈尔滨企业网站seo
  • 国家电网网站制作seo优化是怎么优化的