我遇到的错误及解决方法

学习Java

Error during artifact deployment

在学习servlet时,需要添加json包,发现添加后运行不起来,老是报Error during artifact deployment的错误。其实是因为我添加json包之后,没有把这个包一起打包输出

解决方法是这样的:
1、打开项目设置,找到Artifacts设置项。

2、把右边的Available Elements的包添加到左边的lib文件夹。

之后再次运行调试,发现就可以了。

Establishing SSL connection without server's identity verification is not recommended.

这个直接在url后面加useSSL=true 参数即可。如:

jdbc:mysql://localhost:3306/shop?useUnicode=true&characterEncoding=utf-8&useSSL=true
posted @ 2018-02-02 15:32  hiyujie  阅读(156)  评论(0编辑  收藏  举报