
(28)...mybatis
IT云清
资深Java工程师,研发经理,公众号:java4all
-
原创 复杂sql
这里记录一条mybatis中的sql,涉及以下几点:1.foreach2.大于等于号,小于号3.foreach遍历4.模糊匹配5.and 和or 的复杂拼接6.一个巧妙的用法:1=0 <select id="findByPageForEntFile" resultMap="resMap2" statementType="STATEMENT"> sel...2018-04-27 22:14:45192
0
-
原创 mybatis插入0显示null的解决办法
问题:mybatis,插入或者更新一个Integer类型的字段时,进来的值为0,但数据库最终结果却为null。原因:多半是对这个值做了如下判断: &lt;if test="labelTalentEnt != null and labelTalentEnt != ''"&gt; label_talent_ent = #{labelTalentEnt}, ...2018-06-12 17:35:581951
1
-
原创 Parameter 'stock' not found. Available parameters are [arg1, arg0, param1, param2]
SpringBoot 2.1.0,mybatis1.3.1,做一个简单的压测时,出现了一个和压力测试无关的其他的常见的问题:org.apache.ibatis.binding.BindingException: Parameter 'stock' not found. Available parameters are [arg1, arg0, param1, param2] at org.ap...2018-11-28 16:04:11445
0
-
原创 The bean 'dataSource', defined in BeanDefinition defined in class path resource
SpringCloud,SpringBoot,Mybatis整合时,启动项目,遇到一个错误:2019-02-13 15:38:02.393 INFO 7512 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the c...2019-02-13 16:12:066878
0