您的位置:首页 > 编程语言 > Java开发

spring +springmvc + mybatis 循环 DEBUG org.mybatis.spring.SqlSessionFactoryBean.RMI T

2016-10-19 09:21 447 查看
1、问题  项目使用 spring  springmvc  mybatis   搭建   

增加一个导出excel文件的功能,启动时 一直循环 如下类似 debug    不能启动

DEBUG 2016-10-18 22:10:46,313 org.mybatis.spring.SqlSessionFactoryBean.RMI T

2、解决方法 : 

原因在于  把resultType的类名写错了     首字母小写 ,修改如下顺利跑起。 

<pre name="code" class="html"><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.edu.tju.bigdata.mapper.IndustryMapper">
<!-- 以下与实体类的中字段一致 -->
<sql id="selectId">
EnterpriseID,
EnterName,
IsDangerCp,
MainProduct
</sql>
<select id="findIndustryPage" resultType="cn.edu.tju.bigdata.entity.IndustrialFormMap">
select
<include refid="selectId" />
from ly_industry
where 1 = 1
<!--<if test="accountName != null and accountName != ''">-->
<!--and accountName like '%${accountName}%'-->
<!--</if>-->
<if test="column != null">
order by ${column} ${sort}
</if>
</select>
</mapper>


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息