Exception
木子_coder
这个作者很懒,什么都没留下…
展开
-
Navicat连接SQL Server报错:[IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序(0)
Navicat连接SQL Server报错:[IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序(0)原创 2022-09-03 12:42:42 · 2934 阅读 · 2 评论 -
org.apache.ibatis.binding.BindingException
**org.apache.ibatis.binding.BindingException: Mapper methodattempted to return null from a method with a primitive return type (int).**spring mvc在执行添加时程序报错:org.apache.ibatis.binding.BindingExcept...原创 2019-09-29 19:39:56 · 275 阅读 · 0 评论 -
java.sql.SQLIntegrityConstraintViolationException
java.sql.SQLIntegrityConstraintViolationException:Column ‘caseNumber’ in where clause is ambiguous阅读异常可大致得出,这个字段是模糊不清的,主要原因在于多表查询时,这个字段存在于多张表中,而sqlsession不知道你想要查的到底是哪个字段所以此时要在sql语句中模糊的字段前,加上你所要查的那...原创 2019-09-29 19:46:31 · 7319 阅读 · 0 评论 -
Expected one result (or null) to be returned by selectOne(), but found,2:
nested exception isorg.apache.ibatis.exceptions.TooManyResultsException :Expected one result (or null) to be returned by selectOne(), but found:通过异常可知,“期望selectOne()返回一个结果(或null),但是发现:2”也就是你本来相让它返...原创 2019-09-29 19:50:52 · 875 阅读 · 0 评论