
错误
weixin_49340788
愿成长,落落大方,枯木逢春,不负众望。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
展开
-
mysql连接数据库报错
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 解决方法:把url后边的安全连接参数删除(有警告)或改成false【SQL版本大于connect版本,就要设置成false】: String url=“jdbc:mysql://localhost:3306/xx? useUnicode=true&characterEncodi原创 2021-09-03 15:26:29 · 146 阅读 · 0 评论 -
maven项目重定向出现错误
方法一:没有实现重定向,少了获取地址 servletResponse.sendRedirect("/error.jsp"); 方法二: servletResponse.sendRedirect(servletRequest.getContextPath()+"/error.jsp");原创 2021-06-05 21:03:19 · 358 阅读 · 0 评论 -
IDEA javaweb 报错java.sql.SQLException: No suitable driver found forjdbc
原因:我使用的MYSQL是5.7.22,然后配置的版本为8.0.22 解决: 步骤一:在tomcat的lib目录下添加jdbc的连接包 步骤二:在资源配置那里 修改为: driver=com.mysql.cj.jdbc.Driver url=jdbc:mysql://localhost:3306/smbms?useSSL=true&useUnicode=true&characterEncoding=utf-8 username=root password=root 步骤三:重启tomcat原创 2021-06-05 10:27:21 · 1084 阅读 · 0 评论