springboot
文章平均质量分 64
_小拇指
这个作者很懒,什么都没留下…
展开
-
spring boot 打包 war 加载外部自定义资源文件
在 springboot 中, 每次启动 main 方法, 程序都会自动加载 application.properties 或者 application.yml 这两个文件#######################方式一#########################com.zyd.type3=Springboot - @ConfigurationPropertiescom...原创 2018-09-01 16:19:29 · 4672 阅读 · 0 评论 -
spring boot 运行 jar 或 war 提示没有主清单属性解决
在将项目开发,打包 jar 或者 war 的时候, 我们可以通过 java -jar xxxx.jar/war 的命令直接运行,这个确实很方便今天lz 就遇到了打包 jar 或者 war 通过 java -jar xxxx.jar/war 运行确提示没有主清单属性在网上搜索很多都是说在 pom.xml 中添加 下面的依赖,却没有解决问题<groupId>org.spri...原创 2018-09-01 16:34:13 · 9463 阅读 · 5 评论 -
springboot 学习之路注解版缓存
SpringBoot 缓存介绍spring 定义了 org.springframework.cache.CacheManager 和 org.springframework.cache.Cache 接口来统一不同的缓存技术; CacheManager: 缓存管理器, 管理各种缓存(Cache)组件;如: RedisCache, EhCacheCache...等. 每次调用需要缓存功能的方法...原创 2018-12-19 10:49:36 · 224 阅读 · 0 评论 -
springboot整合redis缓存实现查询缓存,查询缓存源码解读
spring 定义了 org.springframework.cache.CacheManager 和 org.springframework.cache.Cache 接口来统一不同的缓存技术; CacheManager: 缓存管理器, 管理各种缓存(Cache)组件;如: RedisCache, EhCacheCache...等. 本文主要讲解 redis 缓存,以及自定义实现序列化 ...原创 2019-04-03 10:31:34 · 3243 阅读 · 0 评论