摘要: /** * 全局异常处理器 **/ @ControllerAdvice public class GlobalExceptionHandler { @ExceptionHandler(Exception.class) @ResponseBody public Map handlerException(Exception exception){ Map... 阅读全文
posted @ 2019-05-14 15:23 快速奔跑的大米粒 阅读(341) 评论(0) 推荐(0)
摘要: /** * 自定义拦截器 **/ @Configuration//声明这是一个拦截器 public class MyInterceptor extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegistry registry) { Handler... 阅读全文
posted @ 2019-05-14 15:09 快速奔跑的大米粒 阅读(179) 评论(0) 推荐(0)
摘要: 我们知道在mybatis的映射中传参数,只能传入一个。通过#{参数名} 即可获取传入的值。 Mapper接口文件: public int delete(int id) throws Exception;1MapperL配置文件: <delete id="delete" parameterType=" 阅读全文
posted @ 2019-05-14 11:07 快速奔跑的大米粒 阅读(825) 评论(0) 推荐(0)
摘要: 一、下载windows版本的Redis 去官网找了很久,发现原来在官网上可以下载的windows版本的,现在官网以及没有下载地址,只能在github上下载,官网只提供linux版本的下载 官网下载地址:http://redis.io/download github下载地址:https://githu 阅读全文
posted @ 2019-05-14 09:58 快速奔跑的大米粒 阅读(252) 评论(0) 推荐(0)