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

浙公网安备 33010602011771号