# RESTful 网络服务

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/clion/llms.txt).

CLion 提供对符合  表述性状态转移 （REST）架构模式的 Java Web 服务的开发、调试和测试支持。 这包括以下各种辅助功能：

* [Jakarta RESTful Web Services](https://jakarta.ee/specifications/restful-ws/) API

* [Eclipse Jersey](https://eclipse-ee4j.github.io/jersey/) 框架

由于 REST 是一种架构模式，因此开发 RESTful web 服务没有确定的工作流程。 本节概述了在 CLion 中开发 REST 应用程序的一些常见方法。

Procedure: 开发 RESTful 网络服务

1. 请确保启用  Jakarta EE：RESTful Web Services (JAX-RS) 捆绑插件，并创建新的 Jakarta EE 项目或模块，或启用对现有模块的 RESTful Web Services 开发支持。

2. 在 RESTful web 服务模块中创建必要的类和方法。

3. 配置 [工件](null)进行部署。

4. [创建运行配置](run-debug-configuration.html#createExplicitly)。 在   部署  选项卡上，指定要部署的 工件。

5. 将该网络服务部署到 HTTP 服务器并启动服务器。

6. 在本地或远程主机上 [Run](running-applications.html)应用程序。

7. 使用 [内置 HTTP 客户端](http-client-in-product-code-editor.html) 测试 RESTful 网络服务。

## See also

### 外部链接

[http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm](http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm)

