- 博客(2)
- 收藏
- 关注
原创 classpath和classpath*的区别
classpath:只会到你的class路径中查找找文件;classpath*:不仅包含class路径,还包括jar文件中(class路径)进行查找
2020-07-11 10:26:36
115
原创 Springboot集成Mybatis支持*匹配扫描包
Springboot集成Mybatis支持*匹配扫描包1.在Mybati-Config.xml文件中添加如下配置重启(方法一)2.在Mapper.xml中直接使用类全面(方法二)3.配置Mybatis支持*扫描包(方法三)当我们集成Mybatis初始化加载*Mapper.xml时,在xml中使用了类型匹配报错。1.解决这样的错误有3中办法application.yml配置中添加如下配置#MyBatismybatis: # 搜索指定包别名 typeAliasesPackage: com.
2020-07-11 10:24:01
3797
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人