tomcat – server.xml파일에 DB Connection생성을 위한 설정
tomcat – server.xml파일에 DB Connection생성을 위한 설정(<Host>태그 내부에 추가함) <Context Path=”/myapp” docBase=”myapp” debug=”5″ reloadable=”true” crossContext=”true”> <Resource name=”jdbc/TestDB” auth=”Container” type=”javax.sql.DataSource” maxActive=”100″ maxIdle=”30″ maxWait=”10000″ username=”sys” password=”password” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/javatest?autoReconnect=true”/> </Context> 내용설명 Context – path : URL 호출시 사용될 이름 – docBase : … Continue reading