- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Springboot2.X首次集成Redis 的坑 Connection refused: no further information: localhost/127.0.0.1:6379
帮助更多的人初学者学习启动项目编译报错:Connection refused: no further information: localhost/127.0.0.1:6379;1.排查,核实redis 服务端是否启动命令查询服务进程:ps -ef| grep redis #没问题509 3899 3738 0 15:19 pts/8 00:00:00 grep redisroot 4505 1 0 Jul01 ? 00:16:51...
2020-07-11 16:04:34
13272
1
原创 SpringBoot 原理
1、在读取spring.factories 文件;SpringBoot 启动时会读取spring-boot-autoconfigure-2.1.0.RELEASE-sources.jar 包下的META-INF/spring.factories 文件;org.springframework.boot.autoconfigure.EnableAutoConfiguration 属性值加载自动配置类。2、加载xxProperties类根据自动配置类中指定的xxxProperties类设置自动配置
2020-07-07 20:44:43
142
原创 SpringBootTest 测试 获取yml文件实体,Unsatisfied dependency expressed through constructor parameter 0
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'student' defined in file [D:\new_workspace\zyh1-spring-boot-manven-project\target\classes\com\zhaoyanhui\spring\boot\entity\Student.class]: Unsatisf
2020-07-07 17:08:51
2333
原创 Spring Boot单元测试方法Failed to load ApplicationContext
初步调试Spring Boot测试方法中, 启动出现了以下问题:ction:Consider defining a bean of type 'java.lang.Integer' in your configuration.2020-07-07 15:57:57.808 ERROR 43332 --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing Tes...
2020-07-07 16:10:57
10888
转载 JDK各个版本的新特性jdk1.5至jdk8
JDK各个版本的新特性 对于很多刚接触java语言的初学者来说,要了解一门语言,最好的方式就是要能从基础的版本进行了解,升级的过程,以及升级的新特性,这样才能循序渐进的学好一门语言。今天先为大家介绍一下JDK1.5版本到JDK1.8版本的特性。希望能给予帮助。JDK1.5新特性: 1.自动装箱与拆箱:自动装箱的过程:每当需要一种类型的对象时,这种基本类型就自动地封装到与它
2016-12-07 15:47:18
868
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人