0
이 문제에는 많은 스레드가 있지만이 솔루션 중 어느 것도 내 문제를 해결하지 못합니다. 필요한 .jar 파일을 WEB-INF-lib 폴더에 추가 했는데도 오류가 발생합니다. 직접 빌드 경로에 .jar 파일을 추가하려고했지만 여전히 동일한 오류가 발생합니다. 아무도 나를 도와 줄 수 없어! 나는이 문제에 대해 며칠 동안 놀아 보지 않았습니다.com.mysql.jdbc.Driver에 대한 클래스를 찾을 수 없습니다.
<%@ page import = "java.sql.*" %><%@ page import = "java.io.*" %><%@ page import = "com.mysql.*" %><?xml version ="1.0" ?>
<tours>
<%
Connection connection = null;
Statement staement = null;
ResultSet result = null;
try{
Class.forName("com.mySQL.jdbc.Driver").newInstance();
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/tours", "root", "root");
out.println("connected to database");
}
catch(SQLException e){
out.println("error connecting to database");
}
%>
에
에서 변경 내 부주의 총액을 잡기 주셔서 감사합니다! – Potassiumrich