mybatis
lx19860203
这个作者很懒,什么都没留下…
展开
-
MyBatis错误:元素类型为 "configuration" 的内容必须匹配
错误代码org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.### Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.S...转载 2017-03-13 10:14:59 · 2963 阅读 · 0 评论 -
mybatis在insert时,实体类字段为null时,报错问题
今天遇到如题的问题,就是在mybatis 插入oracle数据库空值的报的异常: org.springframework.jdbc.UncategorizedSQLException: Error setting null parameter. Most JDBC drivers require that the JdbcType must be specified for all nul...转载 2017-03-14 10:32:17 · 22938 阅读 · 1 评论 -
mybaits错误解决:There is no getter for property named 'id' in class 'java.lang.String'
在使用mybaitis传参数的时候,如果仅传入一个类型为String的参数,那么在 xml文件中应该使用_parameter来代替参数名。正确的写法:<select id="isCargoBillNoExist" resultType="java.lang.Integer"> select count(1) from t_entr...转载 2017-03-15 15:22:02 · 1387 阅读 · 0 评论