-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
常见问题及解决方式 #97
Comments
您好,跑单元测试,新增一个用户,为何同一个方法会调用两次? |
@22996963 提供一下具体的代码 |
@zhou-hao 解决了,测试代码的问题。 |
您好, hsweb用户手册 - 增删改查 - 通用CRUD - Mybatis/TestMapper.xml 这个文件里的 |
@kongqiu 引入hsweb-commons-mybatis没 |
@zhou-hao 引入了,还是报同样的错。
|
@zhou-hao 解决了,谢谢。把pom.xml里的东西拷贝到我的项目里重新导入依赖包后没问题了,还是依赖的问题。 |
not in没有空格 |
使用hsweb时的常见问题及解决方式
这里只列出了常见问题的解决方式,如果有更多问题,请在下方
留言
或者提交issuesmybatis报错1
There is no getter for property named 'xxxx' in 'class org.hswebframework.web.commons.entity.param.QueryParamEntity'
检查 Mapper.xml中的配置项:
mybatis报错2:
Invalid bound statement (not found): com.xxxx.Xxxxx.select
Mapper.xml
是否被编译到target
. 建议将xml都放到src/resources
目录下Mapper.xml
所在的包名, 在文件系统里是否为com/xxx/Xxxx.xml
而不是com.xxx/Xxxx.xml
application.yml
中是否配置了mybaits.mapper-locations
配置,例如:The text was updated successfully, but these errors were encountered: