java1349033501
java1349033501
2017-08-02 03:05

菜鸟求助:ssm框架启动报错

  • 框架

org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.NullPointerException

<?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">






id = #{itemtsCustom.id}


<select id="findByIdItemts" 
        parameterType="com.sz.po.ItemtsQueryVo" 
        resultType="com.sz.po.ItemtsCustom">
    select * from my_itemts
    <where>
        <include refid="query_itemts_where"></include>
    </where>
</select>

package com.sz.mapper;

import com.sz.po.ItemtsCustom;
import com.sz.po.ItemtsQueryVo;

public interface ItemtsMapper {

public ItemtsCustom findByIdItemts(ItemtsQueryVo itemtsQueryVo)throws Exception;

}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答