From d4af6059f022eb0ced360b3da6e82f81008d8f6c Mon Sep 17 00:00:00 2001 From: springboot-plus Date: Tue, 10 Sep 2019 21:35:14 +0800 Subject: [PATCH] :computer: 1.2.3.RELEASE spring-boot-plus video --- README-zh.md | 7 ++++++- README.md | 10 +++++++++- src/test/resources/templates/controller.java.vm | 8 ++++---- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/README-zh.md b/README-zh.md index 03a89299..10f3b6f7 100644 --- a/README-zh.md +++ b/README-zh.md @@ -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) diff --git a/README.md b/README.md index b2d9cdce..233a1b48 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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` @@ -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) diff --git a/src/test/resources/templates/controller.java.vm b/src/test/resources/templates/controller.java.vm index abcb932c..4f81d861 100644 --- a/src/test/resources/templates/controller.java.vm +++ b/src/test/resources/templates/controller.java.vm @@ -63,7 +63,7 @@ public class ${table.controllerName} { */ @PostMapping("/add") @ApiOperation(value = "添加${entity}对象",notes = "添加$!{table.comment}",response = ApiResult.class) - public ApiResult addSysUser(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{ + public ApiResult add${entity}(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{ boolean flag = ${cfg.serviceObjectName}.save(${cfg.entityObjectName}); return ApiResult.result(flag); } @@ -73,7 +73,7 @@ public class ${table.controllerName} { */ @PostMapping("/update") @ApiOperation(value = "修改${entity}对象",notes = "修改$!{table.comment}",response = ApiResult.class) - public ApiResult updateSysUser(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{ + public ApiResult update${entity}(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{ boolean flag = ${cfg.serviceObjectName}.updateById(${cfg.entityObjectName}); return ApiResult.result(flag); } @@ -83,7 +83,7 @@ public class ${table.controllerName} { */ @PostMapping("/delete") @ApiOperation(value = "删除${entity}对象",notes = "删除$!{table.comment}",response = ApiResult.class) - public ApiResult deleteSysUser(@Valid @RequestBody IdParam idParam) throws Exception{ + public ApiResult delete${entity}(@Valid @RequestBody IdParam idParam) throws Exception{ boolean flag = ${cfg.serviceObjectName}.removeById(idParam.getId()); return ApiResult.result(flag); } @@ -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); }