标签:权限管理 用户 mission stc res sys 管理 分组 操作
<dependency> <groupId>com.spring4all</groupId> <artifactId>swagger-spring-boot-starter</artifactId> <version>1.9.0.RELEASE</version> </dependency>
在启动类添加启用注解@EnableSwagger2Doc
swagger.docket.controller.title=group-controller swagger.docket.controller.base-package=com.mashibing.springboot.controller swagger.docket.restcontroller.title=group-restcontroller swagger.docket.restcontroller.base-package=com.mashibing.springboot.controller.rest
@Api(value = "用户权限管理",tags={"用户操作接口"})
@ApiOperation(value = "添加权限") @RequestMapping("update") public RespStat update(@ApiParam(name="permission",required = true, example = "{json}",value = "权限对象") @RequestBody Permission permission) { System.out.println("permission:" + ToStringBuilder.reflectionToString(permission)); permissionSrv.update(permission); return RespStat.build(200); }
@ApiModelProperty(value = "权限id", name = "id",dataType = "integer",required = true,example = "1") private Integer id;
标签:权限管理 用户 mission stc res sys 管理 分组 操作
原文地址:https://www.cnblogs.com/dagreentree/p/13363936.html