# 基于 Maven 编译的 SpringBoot 部署案例 **Repository Path**: hl1812_back/spring-boot-maven-deploy-case ## Basic Information - **Project Name**: 基于 Maven 编译的 SpringBoot 部署案例 - **Description**: 基于 GiteeGo 使用 Maven 构建部署 SpringBoot,并部署到指定云主机的实战案例。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1188 - **Created**: 2021-07-09 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 后端使用基础 git clone 本项目,更新maven依赖 运行项目 test # 部分注意事项 除了 application.yml中配置的anonurl以外的所有接口都需要进行权限认证 目前可以使用 /token接口直接获取到一个token。 访问请求时 需要在header中加入 token 其值为之前返回的token值。 和若依相比,使用了MybatisPlus。mapper中增删改查和servie中的增删改查可以直接使用内置的方法。 在写返回结果时 有两种类可用其一是BaseResponse与若依的AjaxResult用法相同。 其二可以使用 Response类,其使用可以参见已有的几个接口,对于部分没有返回数据的操作,使用toResponse方法,检验数据库中受影响的行数。 - 所有的Post请求。要对传入的数据进行封装 并加入到request包中。可以参见已经写好的一些request - 如果返回的内容夹杂多个不同entity的内容,可以将所有的属性封装到vo包中,可以使用BeanUtils复制相同的属性