![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 2969 阅读 · 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 · 22953 阅读 · 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 · 1389 阅读 · 0 评论