简体   繁体   English

使用 Java 更新 React 中的元数据

[英]Update metadata in React with Java

Hi . I use the React library on the front end of my website, and for backend I use the Java language with Spring Boot .我在我的网站前端使用React库,对于后端我使用Java语言和Spring Boot My website has a lot of posts and pages and a lot of dynamic data.我的网站有很多帖子和页面以及大量动态数据。 Now I face the challenge of SEO and realized that social networks like Facebook and Twitter are not able to process JavaScript , and I have to use tools like prerender , react-snapshot , server side render , etc. But prerender is recommended for websites with static data or low dynamics. Now I face the challenge of SEO and realized that social networks like Facebook and Twitter are not able to process JavaScript , and I have to use tools like prerender , react-snapshot , server side render , etc. But prerender is recommended for websites with static数据或低动态。 I do not want to be dependent on node for server side rendering either.我也不想依赖节点进行服务器端渲染。 Is there a way to update meta tags with Java ?有没有办法用Java更新元标签 Or on the client side?还是在客户端? (Which I do not think!) So that I can inform social networks about my metadata and be useful for Bing and Yahoo crawlers? (我不这么认为!)这样我就可以告知社交网络我的元数据并对BingYahoo爬虫有用吗? (Of course, my priority is Google crawlers). (当然,我的首要任务是谷歌爬虫)。 Thanks a lot非常感谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM