DB연결2 DB연결 데이터 입출력(2) SELECT mainClass.java package main; import java.util.List; import dto.UserDto; import select.Select; public class mainClass { public static void main(String[] args) { /* JDBC java database connectivity */ Select se = new Select(); UserDto ud = se.Select("aaa"); if(ud != null) { System.out.println(ud.toString()); }else { System.out.println("데이터를 찾을수 없습니다"); } ud = se.Select2("bbb"); if(ud != null.. 2020. 3. 25. DB연결 데이터 입출력(1) DTO UserDto.java package dto; import java.io.Serializable; public class UserDto implements Serializable { private String id; private String name; private int age; private String joindate; public UserDto() { } public UserDto(String id, String name, int age, String joindate) { super(); this.id = id; this.name = name; this.age = age; this.joindate = joindate; } public String getId() { return id; } .. 2020. 3. 15. 이전 1 다음