![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Framework
有头发的猩猩
这个作者很懒,什么都没留下…
展开
-
springcloud客户端注册时 Saw local status change event StatusChangeEvent错误
2020-02-26 21:37:29.888 INFO 12516 --- [extShutdownHook] o.s.c.n.e.s.EurekaServiceRegistry : Unregistering application MICRO-ORDER with eureka with status DOWN2020-02-26 21:37:29.889 WA...原创 2020-02-26 21:46:11 · 6839 阅读 · 3 评论 -
Spring MVC详解及运行原理
Spring框架官方解释: Spring可以轻松创建Java企业应用程序。它提供了在企业环境中支持Java语言所需的一切,并支持Groovy和Kotlin作为JVM上的替代语言,并可根据应用程序的需求灵活地创建多种体系结构。从Spring Framework 5.0开始,Spring需要JDK 8+(Java SE 8+),并且已经为JDK 9提供了开箱即用的支持。Spring MVC介绍:...原创 2018-05-18 15:40:55 · 4125 阅读 · 0 评论 -
Spring Boot集成Redis做数据缓存
Redis就不介绍了,上一篇有,想了解的可以去看一看或者到Redis的官网去看一下。1、加载包在pom.xml中加入三坐标引入spring-boot-starter-redis的 jar包,也可到http://maven.aliyun.com/mvn/search里面搜索spring-boot-starter-redis下载 jar 然后直接引入 <!--...原创 2018-08-06 17:46:55 · 169 阅读 · 0 评论 -
Spring(二)注释详解(@Target,@Retention,@Documented)
要深入学习spring就要定义自己的注解,并使用注解,在定义自己的注解之前,我们必须要了解Java为我们提供的元注解和相关定义注解的语句1、元注解(meta-annotation): 元注解的作用就是负责注解其他注解,Java5定义了元注解类型,他们被用来提供对其它annotation类型做说明。@Target @Retention @Documented...原创 2019-03-07 17:24:00 · 1940 阅读 · 0 评论 -
Springboot连接mysql的时区错误问题: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents mo
今天把SpringBoot从1.5升级到2.1的时候出现这个时区问题The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the se...原创 2019-03-08 10:49:56 · 1865 阅读 · 0 评论 -
SpringBoot连接MongoDB集群问题RFC 2732
这是我springboot连接 MongoDB 配置spring: data: mongodb: uri: mongodb://192.168.1.143:9085/test,mongodb://192.168.1.144:9085/test,mongodb://192.168.1.145:9085/test连接MongoDB 集群是出现java....原创 2019-04-25 16:21:47 · 3697 阅读 · 0 评论 -
spring项目启动完成后,自动执行一次指定方法
实现ApplicationListener接口,并实现 onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent)方法@Componentpublic class SearchReceive implements ApplicationListener<ContextRefreshedEvent> {...原创 2019-09-19 14:54:54 · 685 阅读 · 0 评论