menu 李昊天的个人博客
mvc上传OSS图片卡死
243 浏览 | 2020-03-21 | 分类:项目问题解决汇总 | 标签:问题解决,maven,springMVC,项目问题解决

问题

涉及到上传图片到OSS时卡死,前端报错500,Vue中只提示500,另外写了个html单网页测试上传,得到错误

java.lang.ClassNotFoundException: org.jdom.input.JDOMParseException

问题解决

<!-- https://mvnrepository.com/artifact/org.jdom/jdom -->
<dependency>
    <groupId>org.jdom</groupId>
    <artifactId>jdom</artifactId>
    <version>1.1.3</version>
</dependency>

导入jdom 虽然OSS 的sdk中好像有这个包,但是,导入后错误解决

知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

发表评论

email
web

全部评论 (暂无评论)

info 还没有任何评论,你来说两句呐!

Emoji

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 46

Warning: file_get_contents(): Failed to enable crypto in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 46

Warning: file_get_contents(https://blog.wmgx.top/usr/themes/Cuckoo/assets/json/owo.json): failed to open stream: operation failed in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 46

Warning: array_keys() expects parameter 1 to be array, null given in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 48

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 49

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 87

Warning: file_get_contents(): Failed to enable crypto in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 87

Warning: file_get_contents(https://blog.wmgx.top/usr/themes/Cuckoo/assets/json/owo.json): failed to open stream: operation failed in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 87

Warning: array_keys() expects parameter 1 to be array, null given in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 89

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/typecho.wmgx.top/usr/themes/Cuckoo/includes/owo.php on line 90