An open API service indexing awesome lists of open source software.

https://github.com/zxypro1/start-springboot-v3-t9n9


https://github.com/zxypro1/start-springboot-v3-t9n9

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

> 注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、函数名等等),所以**不推荐**直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,**强烈推荐**通过 `s init ${模版名称}` 的方法或应用中心进行初始化,详情可参考[部署 & 体验](#部署--体验) 。

# start-springboot-v3 帮助文档











Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程

- [:smiley_cat: 代码](https://github.com/devsapp/start-web-framework/tree/V3/web-framework/java/springboot/src)

## 前期准备

使用该项目,您需要有开通以下服务并拥有对应权限:

| 服务/业务 | 权限 |
| --- | --- |
| 函数计算 | AliyunFCFullAccess |

## 部署 & 体验


- :fire: 通过 [Serverless 应用中心](https://fcnext.console.aliyun.com/applications/create?template=start-springboot-v3) ,
[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://fcnext.console.aliyun.com/applications/create?template=start-springboot-v3) 该应用。


- 通过 [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install) 进行部署:
- [安装 Serverless Devs Cli 开发者工具](https://www.serverless-devs.com/serverless-devs/install) ,并进行[授权信息配置](https://docs.serverless-devs.com/fc/config) ;
- 初始化项目:`s init start-springboot-v3 -d start-springboot-v3`
- 进入项目,并进行项目部署:`cd start-springboot-v3 && s deploy -y`

## 应用详情

本项目是将 Springboot 项目部署到阿里云 Serverless 平台(函数计算 FC)。

通过 Serverless Devs 开发者工具,您只需要几步,就可以体验 Serverless 架构,带来的降本提效的技术红利。

部署完成之后,您可以看到系统返回给您的案例地址,例如:

![图片alt](https://img.alicdn.com/imgextra/i2/O1CN01DMr08p1Os7yU07ky9_!!6000000001760-0-tps-1126-324.jpg)

此时,打开案例地址,就可以进入 Springboot 项目首页:

![图片alt](https://img.alicdn.com/imgextra/i4/O1CN01xaoDCw1PNjIy0sBA2_!!6000000001829-0-tps-1746-1318.jpg)

> 注意: 如果您这边部署的 Springboot 项目的 jar 包很大, 超过了函数计算最大的 500M 限制,可以参考[函数计算大代码包部署的实践](https://github.com/awesome-fc/fc-faq/blob/main/docs/%E5%A4%A7%E4%BB%A3%E7%A0%81%E5%8C%85%E9%83%A8%E7%BD%B2%E7%9A%84%E5%AE%9E%E8%B7%B5%E6%A1%88%E4%BE%8B.md)

## 使用文档

## 开发者社区

您如果有关于错误的反馈或者未来的期待,您可以在 [Serverless Devs repo Issues](https://github.com/serverless-devs/serverless-devs/issues) 中进行反馈和交流。如果您想要加入我们的讨论组或者了解 FC 组件的最新动态,您可以通过以下渠道进行:

| | | |
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|

微信公众号:`serverless` | 微信小助手:`xiaojiangwh` | 钉钉交流群:`33947367` |