
SpringBoot
哥斯拉不会说话
无穷无尽的知识之海。
展开
-
SpringBoot+Mybatis使用Redis作为二级缓存实现与解决删除/修改/新增无法更新缓存【调用clear()方法】的问题。
@TOC一. 搭建环境配置Maven。SpringBoot整合Redis。SpringBoot整合Mybatis。父pom.xml文件如下:<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch原创 2021-12-08 16:01:01 · 1523 阅读 · 1 评论 -
BUG:yaml配置向Map<String, List<Pet>> allPets注入参数时报错
错误信息:Description:Binding to target [Bindable@29526c22 type = java.util.List<com.atguigu.boot.bean.Pet>, value = 'none', annotations = array<Annotation>[[empty]]] failed: Property: test.data.key1[0].name Value: name1 Origin: clas原创 2021-03-04 20:02:39 · 566 阅读 · 2 评论 -
BUG:SpringBoot在添加静态资源访问前缀之后index.html(欢迎页)无法访问
BUG描述: 一般我们在SpringBoot项目开发中都会在配置文件中添加静态资源访问前缀,比如:spring: mvc: static-path-pattern: /res/**#SpringBoot 4.3SpringBoot一种配置欢迎页的方法是在静态资源路径下新建index.html。//官方文档Spring Boot supports both static and templated welcome pages. It first looks for an index.原创 2021-03-04 09:49:03 · 2577 阅读 · 6 评论 -
BUG:新建SpringBoot项目运行时,页面报错Whitelabel Error Page This application has no explicit mapping for...
解决方案: 这个BUG主要是SpringBoot启动类与controller不在同一个包下,把启动类与controller包放在同一个目录下即可。BUG:原创 2021-03-03 10:34:03 · 2068 阅读 · 0 评论