首页 > 技术文章 > 若依管理系统

Lemonades 2020-05-22 23:47 原文

第三方文档 https://gitee.com/QSSSYH/doc-public/

官网:http://ruoyi.vip/

官方文档:http://doc.ruoyi.vip/ruoyi/

 

代码生成器:

  操作:首先空白系统可以运行,且正常。建一个student表,生成代码,然后再运行,发现报如下警告

  WARN  ... Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'studentController' method 

  该警告下边:public java.lang.String com.bravo.cms.controller.StudentController.add()

  

  问题原因:

  因为使用的表名为student,生成的一个controller的路径为"/cms/student/add"   在原有的框架中AmcStudentController文件里已经存在

 

  反思:

  要提升阅读错误提示的能力。如这一次的错误,去分析这一次的警告和警告下边的一个发生警告的地方,就可以快速找到问题。

  安装错误提示的 高亮插件

  要改变遇到问题就慌张的问题

 

熟悉若依框架的命名规则:

  amc下的数据库表:tb_ amc_  开头 ,如: tb_amc_goods  为资产登记

  

 

推荐阅读