JSP - 서블릿 3. 초기화 파라미터
·
JSP/- 서블릿 (servlet)
DBCPInit.java 코드의 일부분 public class DBCPInit extends HttpServlet { @Override public void init() throws ServletException { loadJDBCDriver(); initConnectionPool(); } private void loadJDBCDriver() { try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException ex) { throw new RuntimeException("fail to load JDBC Driver", ex); } } private void initConnectionPool() { try { String jdbcUr..