报错具体代码:org.apache.jasper.JasperException:AnexceptionoccurredprocessingJSPpage/connect.jspatline1616:Connectionconnection=DriverManager.getConnection("jdbc:mysql://...
报错具体代码:
org.apache.jasper.JasperException: An exception occurred processing JSP page /connect.jsp at line 16
16: Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/bookDB","root","root");
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
javax.servlet.ServletException: java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream
下面还有一段nested exception省略,字数不够了,之前觉得可能是驱动包的问题,已经安装驱动包到各种bin文件夹下,可是都没有作用,完全看不出出了什么问题,求指导~
展开