![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
九月的小海
这个作者很懒,什么都没留下…
展开
-
Spring整合Mybatis过程中遇到的一个奇怪问题
我安装的mysql版本为8.0.14,项目中使用的mysql-connector版本为5.1.6,启动mybatis-generator插件,错误如下:Client does not support authentication protocol requested by server; consider upgrading MySQL client研究了一下,发现是mysql-connec...原创 2019-02-13 23:10:17 · 737 阅读 · 0 评论 -
使用@ControllerAdvice + @ExceptionHandler建立全局异常拦截
@ControllerAdvice 注解定义全局异常处理类@ControllerAdvicepublic class GlobalExceptionHandler {}@ExceptionHandler 注解声明异常处理方法@ControllerAdvicepublic class GlobalExceptionHandler{ @ExceptionHandler(Excep...原创 2019-05-22 05:24:00 · 802 阅读 · 0 评论