Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,13 @@ sh deploy.sh
tail -f -n 1000 /root/spring-boot-plus-server/logs/spring-boot-plus.log
```

## spring-boot-plus 视频 :movie_camera:
- [CentOS 快速安装 JDK/Git/Maven/Redis/MySQL](https://www.bilibili.com/video/av67218836/)
- [CentOS 快速部署/构建/打包/运行项目](https://www.bilibili.com/video/av67218970/)


## 联系
- Gmail: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
- Email: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
- spring-boot-plus技术交流群

![spring-boot-plus QQ Group](https://raw.githubusercontent.com/geekidea/spring-boot-plus/master/docs/img/spring-boot-plus-qq-group.png)
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ lombok | 1.18.8 | Automatically plugs |
## Java Docs
#### [Java Api Docs](http://geekidea.io/spring-boot-plus-apidocs/)


## Getting started
### Clone spring-boot-plus
```bash
Expand Down Expand Up @@ -243,6 +244,7 @@ public class SpringBootPlusApplication {


## CentOS Quick Installation Environment / Build / Deploy / Launch Spring-boot-plus Project

### 1. Download the installation script
> Install `jdk`, `git`, `maven`, `redis`, `mysql`

Expand Down Expand Up @@ -295,8 +297,14 @@ sh deploy.sh
tail -f -n 1000 /root/spring-boot-plus-server/logs/spring-boot-plus.log
```


## spring-boot-plus Video :movie_camera:
- [CentOS Quick Installation JDK/Git/Maven/Redis/MySQL](https://www.bilibili.com/video/av67218836/)
- [CentOS Quick Build / Deploy / Launch Spring-boot-plus Project](https://www.bilibili.com/video/av67218970/)


## Contact
- Gmail: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
- Email: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
- QQ Group

![spring-boot-plus QQ Group](https://raw.githubusercontent.com/geekidea/spring-boot-plus/master/docs/img/spring-boot-plus-qq-group.png)
Expand Down
8 changes: 4 additions & 4 deletions src/test/resources/templates/controller.java.vm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class ${table.controllerName} {
*/
@PostMapping("/add")
@ApiOperation(value = "添加${entity}对象",notes = "添加$!{table.comment}",response = ApiResult.class)
public ApiResult<Boolean> addSysUser(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
public ApiResult<Boolean> add${entity}(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
boolean flag = ${cfg.serviceObjectName}.save(${cfg.entityObjectName});
return ApiResult.result(flag);
}
Expand All @@ -73,7 +73,7 @@ public class ${table.controllerName} {
*/
@PostMapping("/update")
@ApiOperation(value = "修改${entity}对象",notes = "修改$!{table.comment}",response = ApiResult.class)
public ApiResult<Boolean> updateSysUser(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
public ApiResult<Boolean> update${entity}(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
boolean flag = ${cfg.serviceObjectName}.updateById(${cfg.entityObjectName});
return ApiResult.result(flag);
}
Expand All @@ -83,7 +83,7 @@ public class ${table.controllerName} {
*/
@PostMapping("/delete")
@ApiOperation(value = "删除${entity}对象",notes = "删除$!{table.comment}",response = ApiResult.class)
public ApiResult<Boolean> deleteSysUser(@Valid @RequestBody IdParam idParam) throws Exception{
public ApiResult<Boolean> delete${entity}(@Valid @RequestBody IdParam idParam) throws Exception{
boolean flag = ${cfg.serviceObjectName}.removeById(idParam.getId());
return ApiResult.result(flag);
}
Expand All @@ -93,7 +93,7 @@ public class ${table.controllerName} {
*/
@PostMapping("/info")
@ApiOperation(value = "获取${entity}对象详情",notes = "查看$!{table.comment}",response = ${entity}QueryVo.class)
public ApiResult<${entity}QueryVo> getSysUser(@Valid @RequestBody IdParam idParam) throws Exception{
public ApiResult<${entity}QueryVo> get${entity}(@Valid @RequestBody IdParam idParam) throws Exception{
${entity}QueryVo ${cfg.entityObjectName}QueryVo = ${cfg.serviceObjectName}.get${entity}ById(idParam.getId());
return ApiResult.ok(${cfg.entityObjectName}QueryVo);
}
Expand Down