New - Maven Project - Next
maven-archetype-quickstart 선택 - Next
Group id : kr.or.connect
Artifact id : jdbc.exam
finish
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.45</version>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
수행 후 Maven Update Project
데이터베이스 접속 후 사용할 테이블 구조 확인 하기