목록2024/01/17 (3)
기초공사 (html,css,javascript)
오류 - LocalTime /해결
//insert.jsp private String getCurrentTime() { return LocalDate.now() + " " + LocalTime.now().toString().substring(0,8); } --> LocalTime cannot be resolved라는 오류가 나왔다. java에서 아래와 같이 추가하면 해결된다. 오류해결 import java.time.LocalTime;
게시판
2024. 1. 17. 13:19
JDBC Connection객체 / Class.forname
// 게시판 소스중 Connection conn = getConnection();궁금 https://m.blog.naver.com/rnalsttnn2/222099599178 JDBC Connection 객체 생성하기 자바와 DB를 연결하기 위해서 connection 객체를 생성한다 영어로 따지면 ABC같이 아주 기초중에 기초... blog.naver.com 1. 위의 사이트에서 String url = "jdbc:mysql://localhost:3306/project?serverTimezone=UTC" String변수로 url,id,pw를 선언하고 Connection conn(connection 객체)를 전역변수로 선언한다. 2. Class.forName() : class라는 이름을 가진 클래스는 JVM에..
게시판
2024. 1. 17. 13:01