title: class path resource [target/jdbc.properties] cannot be opened because it does not exist
body: <p>I am making a simple spring application. I already programed this on my other computer and decided to do it again from scratch to really commit it into memory. However my properties file for some reason is not in the class path. I right clicked the properties file and selected "copy qualified name" in eclipse to get the files path. However it is saying the file does not exsist and I find this very weird because I looked at my working example and it is in the same folder "target" and works fine.</p>
  
  <p>When I click "copy qualified name" I get /DatabaseSpringframework/target/jdbc.properties I took away /DatabaseSpringframework/ and left the target/jdbc.properties and still the same error.
  Here is my xml file...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:tx="http://www.springframework.org/schema/tx"
  xsi:schemaLocation="http://www.springframework.org/schema/beans   
  http://www.springframework.org/schema/beans/spring-beans.xsd
  http://www.springframework.org/schema/context    
  http://www.springframework.org/schema/context/spring-context-4.1.xsd
  http://www.springframework.org/schema/tx 
  http://www.springframework.org/schema/tx/spring-tx-4.1.xsd"&gt;
  
  &lt;context:component-scan base-package="com.learntoprogram"&gt;&lt;/context:component-
  scan&gt;
  &lt;context:property-placeholder location="target/jdbc.properties" /&gt;
  
  
  &lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
      destroy-method="close"&gt;
      &lt;property name="username" value="${jdbc.username}"&gt;&lt;/property&gt;
      &lt;property name="url" value="${jdbc.url}"&gt;&lt;/property&gt;
      &lt;property name="driverClassName" value="${jdbc.driver}"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
  
  &lt;tx:annotation-driven /&gt;
  &lt;bean id="transactionManager"
      class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&gt;
  &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>