采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
就是用了模糊查询就报这个错,格式什么我已经对了很多次,好象没有错误!求解
同学好,请问同学能否提供更详细的信息,这样子看起来也没办法精准定位呢,从错误看提供了如下链接,可是都是freemarker报的。。
https://blog.csdn.net/you23hai45/article/details/27382805
同学也可以看看我的mapper代码。程序说1是1,不可能自己的不行而别人这样做却行的,肯定是哪里输入错误了。
<?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="com.imooc.o2o.dao.ProductCategoryDao"> <!-- 目的:为dao接口方法提供sql语句配置 --> <select id="queryProductCategoryList" resultType="com.imooc.o2o.entity.ProductCategory" parameterType="Long"> <!-- 具体的sql --> SELECT product_category_id, product_category_name, priority, create_time, shop_id FROM tb_product_category WHERE shop_id = #{shopId} ORDER BY priority DESC </select> <insert id="batchInsertProductCategory" parameterType="java.util.List"> INSERT INTO tb_product_category(product_category_name, priority, create_time, shop_id) VALUES <foreach collection="list" item="productCategory" index="index" separator=","> ( #{productCategory.productCategoryName}, #{productCategory.priority}, #{productCategory.createTime}, #{productCategory.shopId} ) </foreach> </insert> <delete id="deleteProductCategory"> DELETE FROM tb_product_category WHERE product_category_id = #{productCategoryId} AND shop_id = #{shopId} </delete> </mapper>
对了,同学说模糊查询,但是感觉你提问的章节里没有模糊查询呢,请提供具体的一些信息哈
登录后可查看更多问答,登录/注册
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
1.8k 47
1.6k 41
2.2k 40
1.6k 39
1.3k 37