简体   繁体   English

如何编辑html页面中的段落并将其存储在mysql数据库中?

[英]how to edit paragraphs in html page and store it in mysql database?

By using Spring Boot, java & html, I have created a small website where I given sliding images, normal images and some content with paragraphs.通过使用 Spring Boot、java 和 html,我创建了一个小网站,我在其中提供了滑动图像、普通图像和一些带有段落的内容。 I wanted to put edit button and give access to everyone for editing the page.我想放置编辑按钮并让每个人都可以编辑页面。 by clicking edit button user can edit the page and after editing the page, the page should updated and the information should store in mysql database.点击编辑按钮用户可以编辑页面,编辑页面后,页面应该更新,信息应该存储在mysql数据库中。 can anyone please tell me, how can i edit the page and store all type of data in mysql database.谁能告诉我,我如何编辑页面并将所有类型的数据存储在 mysql 数据库中。

by clicking edit button user can edit the page and after editing the page, the page should updated and the information should store in mysql database.点击编辑按钮用户可以编辑页面,编辑页面后,页面应该更新,信息应该存储在mysql数据库中。 can anyone please tell me, how can i edit the page and store all type of data in mysql database.谁能告诉我,我如何编辑页面并将所有类型的数据存储在 mysql 数据库中。

So you are looking for a technology that transfers the users' data to your server (and later on access it again).因此,您正在寻找一种将用户数据传输到您的服务器(然后再次访问它)的技术。 For that, you can use a so called REST-Service.为此,您可以使用所谓的 REST 服务。 This source defines REST as following:此来源将 REST 定义如下:

" Even though REpresentational State Transfer, also known as REST, is often referred to as a protocol, it's an architectural style. It defines how applications communicate over the Hypertext Transfer Protocol (HTTP). Applications that use REST are loosely-coupled and transfer information quickly and efficiently. While REST doesn't define data formats, it's usually associated with exchanging JSON or XML documents between a client and a server. " "尽管 REpresentational State Transfer,也称为 REST,通常被称为协议,但它是一种架构风格。它定义了应用程序如何通过超文本传输​​协议 (HTTP) 进行通信。使用 REST 的应用程序是松散耦合的并传输信息快速高效。虽然 REST 没有定义数据格式,但它通常与在客户端和服务器之间交换 JSON 或 XML 文档相关联。

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

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