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

来源:互联网 发布:淘宝网红店铺top前10 编辑:程序博客网 时间:2024/05/01 07:57

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>



0 0