`
840433315
  • 浏览: 1355 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
JAVA程序离不开日志的支持,特别是生成环境服务器,查问题的时候更是离不开日志的支持,现将slf+log4j整合到spring框架中的配置写一下: 项目结构如下:   一、在web.xml中添加log4j的配置文件和监听器 <context-param>   <param-name>log4jConfigLocation</param-name>   <param-value>classpath:resources/log4j.properties</param-value> </context-param> ...
相同点: 1、 都是原生SQL,都方便进行SQL代码调优 2、 查询语句后面不能加“;”,否则会报“无效字符错误” 不同点: 1、 ibatis传参是parameterClass,mybatis传参是parameterType 2、 ibatis出参是resultClass,mybatis传参是resultType 3、 ibatis参数占位符是##,mybatis占位符是#{},${} 4、 ibatis逻辑判断标签是< isNotEmpty >、<isequal>,mybatis逻辑判断标签是<if test=””></if>
Global site tag (gtag.js) - Google Analytics