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
Stella981 Stella981
3年前
Spring 使用注解方式进行事务管理
使用步骤:步骤一、在spring配置文件中引入<tx:命名空间<beansxmlns"http://www.springframework.org/schema/beans" xmlns:xsi"http://www.w3.org/2001/XMLSchemainstance" xmlns:tx"http
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
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)实例