创建基于动态 Web 的 java 应用程序的站点地图的最佳工具或实用程序是什么?

发布于 2024-09-16 04:16:23 字数 1863 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

春夜浅 2024-09-23 04:16:23

我工作过的网站有一组有限的已定义部分主页,请将它们手动添加到站点地图(除非您的 CMS 具有这些顶级页面的列表):

/home
/section1
/section2
...
/sectionN

它们还具有内容类型:视频、文章、游戏、您想要从您的 CMS 获取每个项目的列表,或者就我而言,从 CMS 生成的 Solr 索引。这是一个巨大的列表:

/article1
/article2
...
/articleN
/video1
/video2
...
/videoN
...etc!

站点地图和站点地图索引的标记是 非常简单的 XML

Site's on which I've worked have had a limited set of defined section homepages, add those manually to the sitemap (unless your CMS has a list of those top-level pages):

/home
/section1
/section2
...
/sectionN

They also had content types: videos, articles, games, etc. You want to get a list of every single item -- from your CMS or, in my case, Solr indexes generated from CMS. This is a huge list of:

/article1
/article2
...
/articleN
/video1
/video2
...
/videoN
...etc!

The markup for sitemaps and sitemap indexes is pretty simple XML.

葵雨 2024-09-23 04:16:23

我们最终按照谷歌的建议使用了名为 redfin.sitemapgenerator 的 api

We have finally gone as per google's suggestion and used the api's called redfin.sitemapgenerator

计㈡愣 2024-09-23 04:16:23

如果可以从数据源检索您的内容,则通过批处理作业(Spring Batch + sitemapgen4j)生成站点地图可能适合您。

有关此博客文章的更多信息:
http://www.jramoyo.com/2013/02 /generate-sitemaps-using-spring-batch.html

If your content can be retrieved from a datasource, generating the sitemap through batchjobs (Spring Batch + sitemapgen4j) might work for you.

More information on this blog post:
http://www.jramoyo.com/2013/02/generating-sitemaps-using-spring-batch.html

萌无敌 2024-09-23 04:16:23

此网站 http://create-site-map.com/ 使用 sitemapgen4j。您可以轻松编写一个脚本,使用它定期自动生成和下载站点地图。

This website http://create-site-map.com/ uses sitemapgen4j. You can easily write a script that uses it to generate and download the sitemap automatically periodically.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文