04 2020 档案
摘要:初次使用mybatis时,下面红线上的地址报红。 解决方法是:将http://mybatis.org/dtd/mybatis-3-mapper.dtd拷贝、添加到下面标记处。
阅读全文
摘要:创建索引 删除索引 配置 Elasticsearch ik
阅读全文
摘要:检查安装 node --version 修改 安装:npm install 启动:grunt server 如果报错: 找不到模块“lodash” https://www.soinside.com/question/AhhfQE44j4nsxAwAXUwsJV
阅读全文
摘要:1.当入参为 string类型时 (包括java.lang.String.) 我们使用#{xxx}引入参数.会抛异常There is no getter for property named 'XXX' in 'class java.lang.String' <select id="getBooki
阅读全文
摘要:spring boot中mybatis使用注解进行模糊查询@Select("select * from dept where dname like CONCAT('%',#{dname},'%') ")public List<Dept> getDeptByLikeDname(@Param(value
阅读全文
摘要:1、通过Spring创建对象,现有Users和Cart实体类,关系为1:1 属性注入的方式给Users属性赋值 2、Cart和Product实体类,关系1:n 构造器注入的方式给Cart属性赋值 Cart中包含Set<Product>、Map<String,Product> 1 package co
阅读全文
摘要:where (条件1)and (条件2 or 条件3 or 条件4) = where (条件1 and 条件2)or (条件1 and 条件3) or (条件1 and 条件4) 结果 是这样的 WHERE ( birthdate between ? and ? and username like
阅读全文
摘要:Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.builder.BuilderExc
阅读全文
摘要:报错: Exception in thread "main" org.apache.ibatis.binding.BindingException: Type interface com.ssm.mapper.NewProductMapper is not known to the MapperRe
阅读全文
摘要:首先,先看看这张图,看能不能一下看明白: select元素有很多属性(这里说用的比较多的): id:命名空间唯一标识,可以被用来引用这条语句 parameterType:将会传入这条语句的参数类的完全限定名或者别名 resultType:从这条语句要返回的期望类型的类的完全限定名或别名(这里注意下集
阅读全文
摘要:mysql6以上 com.mysql.cj.jdbc.Driver
阅读全文
摘要:1、 2、外连接 左外连接:(表一) LEFT OUTER JOIN (表二) ON 条件 右外连接:RIGHT OUTER JOIN 2、内连接查询 INNER JOIN 3、复合条件关联查询 4、自连接 自己和自己模拟多表连接的情况查询要求的信息 普通列 不能和计算列 一块
阅读全文
摘要:报错 <?xml version="1.0" encoding="UTF-8"?> 必须是XML文件的第一个元素且前面不能空格。 ### Error building SqlSession.### Cause: org.apache.ibatis.builder.BuilderException:
阅读全文