Easter79 Easter79
3年前
SpringBoot系列——Jackson序列化
  前言  SpringBoot提供了与三个JSON映射库的集成:GsonJacksonJSONB  Jackson是首选的默认库。  官网介绍:  https://docs.spring.io/springboot/docs/2.1.6.RELEASE/reference/html/boot
Stella981 Stella981
3年前
Spring MVC controller简单处理301跳转
一、SpringMVC301,302跳转springmvc项目是spring的一个子项目用于处理视图层的请求。302跳转很简单:@RequestMapping(value"blog.html")publicStringrindex(){return"re
Stella981 Stella981
3年前
SpringBoot系列——Jackson序列化
  前言  SpringBoot提供了与三个JSON映射库的集成:GsonJacksonJSONB  Jackson是首选的默认库。  官网介绍:  https://docs.spring.io/springboot/docs/2.1.6.RELEASE/reference/html/boot
Easter79 Easter79
3年前
SSM中(Spring
一:Spring:参照我的另一篇博客:   http://www.cnblogs.com/GH0522/p/8127530.html二:SpringMVC:流程图:!(https://oscimg.oschina.net/oscnet/7ca3971b5a00092b269b2698b632e3977a6.jpg)S
Easter79 Easter79
3年前
Spring注解自动注入Bean
我们知道采用spring(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Flib.csdn.net%2Fbase%2Fjavaee)注解时,配置如下:<context:annotationconfig/<context:componentsc
Wesley13 Wesley13
3年前
Java 动态代理实践AOP
大家都知道Spring中AOP是通过Java动态代理实现的,今天就来简单学习下demo。Java动态代理主要有两个核心类,InvocationHandler和Proxy。/{@codeInvocationHandler}istheinterfaceimplementedbythe<iinvo
Wesley13 Wesley13
3年前
Spring AOP教程
一、概念AOP(AspectOrientedProgramming):面向切面编程。面向切面编程(也叫面向方面编程),是目前软件开发中的一个热点,也是Spring框架中的一个重要内容。利用AOP可以对业务逻辑的各个部分进行隔离,从而使得业务逻辑各部分之间的耦合度降低,提高程序的可重用性,同时提高了开发的效率。二、用途日志记
Stella981 Stella981
3年前
Spring Boot实践——统一异常处理
注解说明@ControllerAdvice,是Spring3.2提供的新注解,从名字上可以看出大体意思是控制器增强。让我们先看看@ControllerAdvice的实现:/Specializationof{@linkComponent@Component}forclassesthatdecl
Stella981 Stella981
3年前
Spring RabbitMQ 消息重试机制
RabbitMQ框架提供了重试机制,只需要简单的配置即可开启,可以提升程序的健壮性。测试一:重试5次spring:rabbitmq:listener:simple:retry:enabled:true
Stella981 Stella981
3年前
Spring Annotation 启动流程
SpringAnnotation启动流程本文将对Spring注解方式的启动流程进行分析author:huifer(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fhuifer)实例