随笔分类 -  springboot

springboot框架
摘要:1:概述 SpringBoot支持外部化配置,配置文件格式如下所示: properties files yaml files environment variables command-line arguments properties files yaml files environment va 阅读全文
posted @ 2019-06-17 15:32 海渊 阅读(1805) 评论(0) 推荐(0)
摘要:1:概述 SpringBoot的@PropertySource注解只支持加载 properties结尾的文件。当使用@ConfigurationProperties 注解配合@EnableConfigurationProperties注解将配置转换为JavaBean时,可能需要配合@Property 阅读全文
posted @ 2019-06-16 21:40 海渊 阅读(1500) 评论(0) 推荐(0)
摘要:1:概述: Spring Boot是用来简化Spring应用的初始化开发过程。 2:特性: 创建独立的应用(jar|war形式); 需要用到spring-boot-maven-plugin插件 直接嵌入式Tomcat,Jetty,Undertow等Web容器; 提供固化的starter依赖,简化构建 阅读全文
posted @ 2019-06-15 10:14 海渊 阅读(1341) 评论(0) 推荐(0)
摘要:1:ERR value is not an integer or out of range 1-1:背景 使用redisTemplate.opsForValue().increment(key, delat)方法。 1-2:分析 分析:redis对任何不合法的值,都称为ERR。只有使用StringR 阅读全文
posted @ 2019-01-03 12:08 海渊 阅读(1501) 评论(0) 推荐(0)