Skip to content

Commit f182a87

Browse files
Merge pull request #59 from geekidea/dev
💻 1.2.3.RELEASE spring-boot-plus video
2 parents 0fa6db6 + d4af605 commit f182a87

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

README-zh.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,13 @@ sh deploy.sh
292292
tail -f -n 1000 /root/spring-boot-plus-server/logs/spring-boot-plus.log
293293
```
294294
295+
## spring-boot-plus 视频 :movie_camera:
296+
- [CentOS 快速安装 JDK/Git/Maven/Redis/MySQL](https://www.bilibili.com/video/av67218836/)
297+
- [CentOS 快速部署/构建/打包/运行项目](https://www.bilibili.com/video/av67218970/)
298+
299+
295300
## 联系
296-
- Gmail: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
301+
- Email: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
297302
- spring-boot-plus技术交流群
298303
299304
![spring-boot-plus QQ Group](https://raw.githubusercontent.com/geekidea/spring-boot-plus/master/docs/img/spring-boot-plus-qq-group.png)

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ lombok | 1.18.8 | Automatically plugs |
8383
## Java Docs
8484
#### [Java Api Docs](http://geekidea.io/spring-boot-plus-apidocs/)
8585

86+
8687
## Getting started
8788
### Clone spring-boot-plus
8889
```bash
@@ -243,6 +244,7 @@ public class SpringBootPlusApplication {
243244

244245

245246
## CentOS Quick Installation Environment / Build / Deploy / Launch Spring-boot-plus Project
247+
246248
### 1. Download the installation script
247249
> Install `jdk`, `git`, `maven`, `redis`, `mysql`
248250
@@ -295,8 +297,14 @@ sh deploy.sh
295297
tail -f -n 1000 /root/spring-boot-plus-server/logs/spring-boot-plus.log
296298
```
297299
300+
301+
## spring-boot-plus Video :movie_camera:
302+
- [CentOS Quick Installation JDK/Git/Maven/Redis/MySQL](https://www.bilibili.com/video/av67218836/)
303+
- [CentOS Quick Build / Deploy / Launch Spring-boot-plus Project](https://www.bilibili.com/video/av67218970/)
304+
305+
298306
## Contact
299-
- Gmail: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
307+
- Email: [springbootplus@aliyun.com](mailto:springbootplus@aliyun.com)
300308
- QQ Group
301309
302310
![spring-boot-plus QQ Group](https://raw.githubusercontent.com/geekidea/spring-boot-plus/master/docs/img/spring-boot-plus-qq-group.png)

src/test/resources/templates/controller.java.vm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class ${table.controllerName} {
6363
*/
6464
@PostMapping("/add")
6565
@ApiOperation(value = "添加${entity}对象",notes = "添加$!{table.comment}",response = ApiResult.class)
66-
public ApiResult<Boolean> addSysUser(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
66+
public ApiResult<Boolean> add${entity}(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
6767
boolean flag = ${cfg.serviceObjectName}.save(${cfg.entityObjectName});
6868
return ApiResult.result(flag);
6969
}
@@ -73,7 +73,7 @@ public class ${table.controllerName} {
7373
*/
7474
@PostMapping("/update")
7575
@ApiOperation(value = "修改${entity}对象",notes = "修改$!{table.comment}",response = ApiResult.class)
76-
public ApiResult<Boolean> updateSysUser(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
76+
public ApiResult<Boolean> update${entity}(@Valid @RequestBody ${entity} ${cfg.entityObjectName}) throws Exception{
7777
boolean flag = ${cfg.serviceObjectName}.updateById(${cfg.entityObjectName});
7878
return ApiResult.result(flag);
7979
}
@@ -83,7 +83,7 @@ public class ${table.controllerName} {
8383
*/
8484
@PostMapping("/delete")
8585
@ApiOperation(value = "删除${entity}对象",notes = "删除$!{table.comment}",response = ApiResult.class)
86-
public ApiResult<Boolean> deleteSysUser(@Valid @RequestBody IdParam idParam) throws Exception{
86+
public ApiResult<Boolean> delete${entity}(@Valid @RequestBody IdParam idParam) throws Exception{
8787
boolean flag = ${cfg.serviceObjectName}.removeById(idParam.getId());
8888
return ApiResult.result(flag);
8989
}
@@ -93,7 +93,7 @@ public class ${table.controllerName} {
9393
*/
9494
@PostMapping("/info")
9595
@ApiOperation(value = "获取${entity}对象详情",notes = "查看$!{table.comment}",response = ${entity}QueryVo.class)
96-
public ApiResult<${entity}QueryVo> getSysUser(@Valid @RequestBody IdParam idParam) throws Exception{
96+
public ApiResult<${entity}QueryVo> get${entity}(@Valid @RequestBody IdParam idParam) throws Exception{
9797
${entity}QueryVo ${cfg.entityObjectName}QueryVo = ${cfg.serviceObjectName}.get${entity}ById(idParam.getId());
9898
return ApiResult.ok(${cfg.entityObjectName}QueryVo);
9999
}

0 commit comments

Comments
 (0)