Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
- <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
- <property name="url" value="jdbc:oracle:thin:@example.com:1521:t2xxi"/>
- <property name="username" value="user"/>
- <property name="password" value="12345"/>
- </bean>
- <bean id="departmentJDBCTemplate"
- class="DAO.DepartmentDAO">
- <property name="dataSource" ref="dataSource"/>
- </bean>
- Exception in thread "main" org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement