Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalvin committed Apr 3, 2020
1 parent b1fd931 commit 7ea16ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,21 @@ kvf-admin
* 集成activity工作流引擎
* vue-admin版本

### 常见问题
1.有些人访问报错:`org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found,Available parameters are [0, 1, param1, param2]`

为什么会出现部分人报错,有些却不报错呢?
答案参考这篇分析文章:[点我](https://blog.csdn.net/u011821334/article/details/101763001)

####解决方案:
* 方案一:
可能是使用低版本的idea,因为低版本的idea默认是没有加上-parameters选项的,需要手动加上;(上面的分析文章有详细说明)
或者升级idea版本

* 方案二:
在mapper的方法参数上加上@Param注解


### 交流反馈
* github仓库:https://github.com/kalvinGit/kvf-admin
* gitee仓库:https://gitee.com/kalvinmy/kvf-admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public interface MenuMapper extends BaseMapper<Menu> {
* @param userId
* @return
*/
List<Menu> selectUserPermissionMenuList(Long parentId, Long userId);
List<Menu> selectUserPermissionMenuList(@Param("parentId") Long parentId, @Param("userId") Long userId);

/**
* 查询用户有权限的导航菜单列表(用于横向导航菜单)
Expand Down

0 comments on commit 7ea16ed

Please sign in to comment.