
SpringBoot
云果龙
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
这种报错的原因有很多种,我这里写出一种,以后在补充IDEA 默认不会编译源码文件夹中的 XML 文件,可以参照以下方式解决在pom.xml添加如下<resources> <resource> <!-- xml放在java目录下--> <directory>src/main/java</directory> <includes&原创 2021-04-03 13:28:36 · 126 阅读 · 0 评论 -
MyBatis-Plus Property ‘mapperLocations‘ was not specified. 和 Invalid bound statement (not found)
在idea编辑器中使用SpringBoot整合MyBatis-Plus编译时出现 Property 'mapperLocations' was not specified.调用方法时出现:org.apache.ibatis.binding.BindingException:Invalid bound statement (not found)对于以上错误提示,主要是因为:对于IDEA系列编辑器,XML 文件是不能放在 java 文件夹中的,IDEA 默认不会编译源码文件夹中的 XML原创 2021-03-16 23:46:06 · 3740 阅读 · 0 评论 -
springboot WebAPi常用注解
@RequestMapping /** * 顾名思义,请求映射,如果不指定具体的请求方法,则默认接收所有类型的请求 * @return */ @RequestMapping("getFilmInfoList") public List<FilmInfo> getFilmInfoList() { List<FilmInfo> list = iFilmInfoService.list(); return li原创 2021-03-15 13:08:54 · 271 阅读 · 0 评论 -
springboot2.4.1不支持 velocity-engine-core 2.0
springboot2.4.1不支持 velocity-engine-core 2.0解决办法: springboot版本切换成 2.2.1.RELEASE原创 2020-12-18 09:30:10 · 4131 阅读 · 1 评论 -
查询Spring和SpringBoot版本
@Test public void test() { System.out.println(SpringVersion.getVersion()); System.out.println(SpringBootVersion.getVersion()); }原创 2020-12-18 14:55:22 · 833 阅读 · 0 评论 -
SpringBoot MybatisPlus(3.4.0开始) 乐观锁插件配置
MP插件官方描述自3.4.0开始插件已经弃用 OptimisticLockerInterceptor 来实现乐观锁功能新的写法如下@Configurationpublic class MpConfig { @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();原创 2021-03-11 18:06:27 · 731 阅读 · 0 评论