![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
Mr.XieZL
这个作者很懒,什么都没留下…
展开
-
springboot静态资源访问不了,被拦截器(Interceptor)拦截
springboot静态资源访问不了,被拦截器(Interceptor)拦截原创 2022-04-14 20:14:40 · 4446 阅读 · 0 评论 -
springboot整合Redis之RedisUtils工具类
@Componentpublic final class RedisUtil { @Autowired private RedisTemplate<String, Object> redisTemplate; // =============================common============================ /** * 指定缓存失效时间 * @param key 键 * @param tim.原创 2021-11-24 21:39:55 · 911 阅读 · 0 评论 -
springboot读取配置文件properties和yml的方式
前言:在springboot 项目中一般默认的配置文件是application.properties,但是实际项目中我们一般会使用application.yml 文件,下面就介绍一下在springboot 中读取 yml 配置的几种方式.yml 文件规则yml文件的好处,天然的树状结构,一目了然,实质上跟properties是差不多的。 不支持tab缩进 可以使用 "-小写字母" 或 "_小写字母"来 代替 "大写字母",如 userName 与 user-name ,user_name 含义是转载 2021-11-24 15:58:31 · 335 阅读 · 0 评论