ibatis抛出Closing non transactional SqlSession异常怎么解决
DEBUG - Preparing: select;
category_id,category_name,level,parent_id,create_time,sffj from;
product_category;
DEBUG - Parameters;
DEBUG - Total: 25;
DEBUG - Closing non transactional SqlSession;
.org.apache.ibatis.session.defaults.DefaultSqlSession@7271d362];
WARN - Handler execution resulted in exception: null;
应该是xml配置的问题,但是我找不出来;
<?xml version="1.0" encoding="UTF-8"?>;
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN";
<mapper namespace="com.tmhome.mall.dao.ProductCategoryDao">;
<resultMap type="com.tmhome.mall.model.ProductCategory";
id="productCategoryMap">;
<result property="categoryId" column="category_id" />;
<result property="categoryName" column="category_name" />;
<result property="level" column="level" />;
<result property="parentId" column="parent_id" />;
<result property="createTime" column="create_time" />;
<result property="sffj" column="sffj" jdbcType="TINYINT" />;
</resultMap>;
<select id="selectByPrimaryKey";
parameterType="com.tmhome.mall.model.ProductCategory";
resultMap="productCategoryMap">;
select category_id,category_name,level,parent_id,create_time, sffj;
from product_category;
where category_id = #{categoryId,jdbcType=INTEGER};
</select>;
<select id="selectAll";
parameterType="com.tmhome.mall.model.ProductCategory";
resultMap="productCategoryMap">;
select category_id,category_name,level,parent_id,create_time, sffj;
from product_category;
</select>;
</mapper>。