请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

模糊查询 Encountered: "\uff01" (65281), after : ""

就是用了模糊查询就报这个错,格式什么我已经对了很多次,好象没有错误!求解

正在回答 回答被采纳积分+3

1回答

翔仔 2018-12-22 09:18:22

同学好,请问同学能否提供更详细的信息,这样子看起来也没办法精准定位呢,从错误看提供了如下链接,可是都是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>	

对了,同学说模糊查询,但是感觉你提问的章节里没有模糊查询呢,请提供具体的一些信息哈

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信