title: Runtime Error in SprinBoot project : unable to find SqlSessionFactory
body: <p>I have a simple SpringBoot project in IntelliJ that I generated at <a href="http://start.spring.io" rel="nofollow noreferrer">http://start.spring.io</a>. I added a dependency from the local repository and it was successfully imported. This library depends on the different local library.</p>
  <p>I am able to Build my project successfully, however when I am trying to Run it I am getting runtime error. I added new dependency to my project that contains the class which was not found during the startup but it didn't resolve my issue and I am still having problems on the startup.</p>
  <p>Here is the original dependency I added to my project :</p>
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;connect_mgr&lt;/groupId&gt;
  &lt;artifactId&gt;connect-mgr&lt;/artifactId&gt;
  &lt;version&gt;1&lt;/version&gt;
  </code></pre>
  
  <p>Inside this &quot;connect_mgr&quot; project there is a dependency on the different library :</p>
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;services_core&lt;/groupId&gt;
              &lt;artifactId&gt;services-core&lt;/artifactId&gt;
              &lt;version&gt;1&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>There is also an implementation in the &quot;services_core&quot; project :</p>
  <pre><code>@Bean
      @DependsOn(&quot;sqlSessionFactory&quot;)
      public SqlSessionTemplate sqlSessionTemplate(SqlSessionFactory sqlSessionFactory) {
          return new SqlSessionTemplate(sqlSessionFactory);
      }
  </code></pre>
  <p>In my Project I also added a dependency to IBatis-Core that contains &quot;SqlSessionFactory&quot; class.</p>
  <p>And still, on the startup of my project I am getting this error :</p>
  <p><em>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/config/MyBatisMapperConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.io.FileNotFoundException: class path resource [null] cannot be opened because it does not exist</em></p>
  <p>Main class in my projec resides in &quot;services_core&quot; project.</p>