로딩
요청 처리 중입니다...

Tomcat에서 DBCP 사용

 Tomcat에서 DBCP 사용

- Context.xml의 태그 안에 아래 내용 추가 username=”test” password=”test” factory=”org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory” driverClassName=”org.postgresql.Driver” url=”jdbc:postgresql://192.168.10.241:5432/postgres” //postgres는 임의의 이름 maxActive=”8” maxIdle=”4” //숫자는 상황에 맞게 removeAbandoned=”true”/> - Web.xml의 안에 아래 내용 추가 postgre...

# context.xml # dbcp # tomcat # web.xml # 톰캣