@@ -27,7 +27,7 @@ import io.swagger.annotations.ApiOperation;
*
* @author ruoyi
*/
-@Api("用户信息管理")
+@Api(tags="用户信息管理")
@RestController
@RequestMapping("/test/user")
public class TestController extends BaseController
@@ -130,6 +130,13 @@
<artifactId>javax.servlet-api</artifactId>
</dependency>
+ <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-models</artifactId>
+ <version>1.6.2</version>
+ </dependency>
+
</dependencies>
</project>
@@ -1,10 +1,10 @@
# 代码生成
gen:
# 作者
- author: ruoyi
+ author: wukai
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
- packageName: com.doc.system
+ packageName: com.doc.biz
# 自动去除表前缀,默认是false
autoRemovePre: false
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
- tablePrefix: sys_
+ tablePrefix: sys_,doc_
@@ -33,7 +33,7 @@ import com.doc.common.core.page.TableDataInfo;
* @author ${author}
* @date ${datetime}
-@Api("${functionName}")
+@Api(tags="${functionName}")
@RequestMapping("/${moduleName}/${businessName}")
public class ${ClassName}Controller extends BaseController