mybatis3---Illegal overloaded getter method with ambiguous type
来源:互联网 发布:数据录入员述职报告 编辑:程序博客网 时间:2024/06/11 13:50
严重: Servlet.service() for servlet [spring] in context with path [/coms] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Illegal overloaded getter method with ambiguous type for property menu in class class com.Model.Operation. This breaks the JavaBeans specification and can cause unpredicatble results.] with root cause
at org.apache.ibatis.reflection.Reflector.resolveGetterConflicts(Reflector.java:139)
at org.apache.ibatis.reflection.Reflector.addGetMethods(Reflector.java:113)
at org.apache.ibatis.reflection.Reflector.<init>(Reflector.java:65)使用mybatis3.2.8
报错类为 org.apache.ibatis.reflection.Reflector,大致意思是重载了menu变量的getter方法,使用不明确类型
说明menu变量有多个getter,但程序里并没有,检查conflictingGetters类,
if (name.startsWith("get") && name.length() > 3) {
} else if (name.startsWith("is") && name.length() > 2) {
这两种情况下,方法都会加入conflictingGetters
检查类,发现有isMenu和getMenu两个方法,应该是mybatis认为两方法冲突了
0 0
- mybatis3---Illegal overloaded getter method with ambiguous type
- Illegal overloaded getter method with ambiguous type for property
- method is ambiguous for the type
- method is ambiguous for the type
- ambiguous call to overloaded function
- The method find(String, Object[]) is ambiguous for the type
- error: overloaded function with no contextual type information
- 'sqtr'ambiguous call to overloaded function
- error C2668: 'sqrt' : ambiguous call to overloaded
- call of overloaded 'round(&float)' is ambiguous
- Java Ambiguous overloading method
- The method assertEquals(Object, Object) is ambiguous for the type Assert解决办法
- The method execute(Void[]) is ambiguous for the type new AsyncTask<Void,Void,Void>(){}
- java 调用方法引起歧义:The method XXX is ambiguous for the type XX
- The method iterator() is ambiguous for the type KafkaStream<byte[],byte[]>
- android The method execute(Void[]) is ambiguous for the type new AsyncTask<Void,Void,Void>(){}
- 编译错:The method createSqlQuery(String, List<Object>) is ambiguous for the type
- The method execute(Void[]) is ambiguous for the type new AsyncTask<Void,Void,Void>(){}
- 微信开发https请求
- Udacity GPU编程模型学习
- 搜索引擎Solr环境搭建详解
- JAVA笔记:Java数据库编程(三)
- C#概览式学习
- mybatis3---Illegal overloaded getter method with ambiguous type
- android利用get提交数据到服务器进行验证
- 20070306-Connected component labeling – Part 1
- ubuntu 14.10安装docker
- 第二篇 javase与sql server实现交互登录界面
- 2、转账汇款——一个简单的页面
- TCP通讯
- 从网上下载图片存到沙盒里的Documents里面(图片的缓存)
- HDU 2091 空心三角形