出现异常自动获取message打开浏览器百度。。。(笑死我了哈哈)
@ExceptionHandler(Exception.class)
public Result<String> handleException(Exception ex) throws IOException {
log.error(ex.getMessage(), ex);
Runtime rt = Runtime.getRuntime();
String url = "https://www.baidu.com/s?ie=UTF-8&wd="+ex.getMessage();
rt.exec("rundll32 url.dll,FileProtocolHandler " + url);
return Result.error(ErrorCode.INTERNAL_SERVER_ERROR);
}