mirror of https://gitee.com/y_project/RuoYi.git
升级oshi到最新版本v5.7.5
parent
4ab671f211
commit
1312c1b20a
2
pom.xml
2
pom.xml
|
@ -26,7 +26,7 @@
|
|||
<mybatis-spring-boot.version>2.1.4</mybatis-spring-boot.version>
|
||||
<pagehelper.boot.version>1.3.1</pagehelper.boot.version>
|
||||
<fastjson.version>1.2.76</fastjson.version>
|
||||
<oshi.version>5.7.4</oshi.version>
|
||||
<oshi.version>5.7.5</oshi.version>
|
||||
<jna.version>5.8.0</jna.version>
|
||||
<commons.io.version>2.10.0</commons.io.version>
|
||||
<commons.fileupload.version>1.4</commons.fileupload.version>
|
||||
|
|
|
@ -47,8 +47,9 @@ public class GlobalExceptionHandler
|
|||
/**
|
||||
* 请求方式不支持
|
||||
*/
|
||||
@ExceptionHandler({HttpRequestMethodNotSupportedException.class})
|
||||
public AjaxResult handleException(HttpRequestMethodNotSupportedException e, HttpServletRequest request) {
|
||||
@ExceptionHandler({ HttpRequestMethodNotSupportedException.class })
|
||||
public AjaxResult handleException(HttpRequestMethodNotSupportedException e, HttpServletRequest request)
|
||||
{
|
||||
String requestURI = request.getRequestURI();
|
||||
String msg = String.format("访问的URL[%s]不支持%s请求", requestURI, e.getMethod());
|
||||
log.error(msg, e);
|
||||
|
@ -59,7 +60,8 @@ public class GlobalExceptionHandler
|
|||
* 拦截未知的运行时异常
|
||||
*/
|
||||
@ExceptionHandler(RuntimeException.class)
|
||||
public AjaxResult notFount(RuntimeException e, HttpServletRequest request) {
|
||||
public AjaxResult notFount(RuntimeException e, HttpServletRequest request)
|
||||
{
|
||||
String requestURI = request.getRequestURI();
|
||||
String msg = String.format("访问的URL[%s]发生异常%s", requestURI, e.getMessage());
|
||||
log.error(msg, e);
|
||||
|
|
Loading…
Reference in New Issue