摘要:
在Spring 3.2中,新增了@ControllerAdvice、@RestControllerAdvice 注解,可以用于定义@ExceptionHandler、@InitBinder、@ModelAttribute,并应用到所有@RequestMapping、@PostMapping, @Ge 阅读全文
posted @ 2019-02-14 16:24
皇问天
阅读(1108)
评论(0)
推荐(0)
摘要:
今天我们来讲讲怎么在spring boot 中整合redis 实现对数据库查询结果的缓存。首先第一步要做的就是在pom.xml文件添加spring-boot-starter-data-redis。要整合缓存,必不可少的就是我们要继承一个父类CachingConfigurerSupport。我们先看看 阅读全文
posted @ 2019-02-14 16:14
皇问天
阅读(396)
评论(0)
推荐(0)
摘要:
今天来和朋友们一起学习下,SpringBoot怎么整合RabbitMQ。目前消息组件大致有三种:.activemq, rabbitmq, kafka。这三者各有优缺点,RabbitMQ相比之下是处于其他二者之间的一个消息组件。RabbitMQ依赖于erlang,在linux下安装的话,要先安装erl 阅读全文
posted @ 2019-02-14 16:07
皇问天
阅读(220)
评论(0)
推荐(0)
摘要:
SpringBoot 确实为我们做了很多事情, 但有时候我们想要自己定义一些Handler,Interceptor,ViewResolver,MessageConverter,该怎么做呢。在Spring Boot 1.5版本都是靠重写WebMvcConfigurerAdapter的方法来添加自定义拦 阅读全文
posted @ 2019-02-14 15:49
皇问天
阅读(5345)
评论(0)
推荐(0)

浙公网安备 33010602011771号