title: Spring Boot 1.5.13 - QueryDSL Query ClassNotFoundException?
body: <p>I am using Spring Boot 1.5.13 with QueryDSL and whenever I issue a call to a controller I get the following <code>ClassNotFoundException</code></p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: api.model.QAddress
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_121]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_121]
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_121]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_121]
      at org.springframework.boot.devtools.restart.classloader.RestartClassLoader.loadClass(RestartClassLoader.java:161) ~[spring-boot-devtools-1.5.13.RELEASE.jar:1.5.13.RELEASE]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_121]
      ... 211 common frames omitted
  </code></pre>
  
  <p>However when I check the generated package the class <code>QAddress</code> is there. How do I fix this problem? </p>
  
  <p>Below are my <code>pom.xml</code> for <code>QueryDSL</code>:</p>
  
  <pre><code>        &lt;dependency&gt; 
              &lt;groupId&gt;com.querydsl&lt;/groupId&gt; 
              &lt;artifactId&gt;querydsl-apt&lt;/artifactId&gt; 
          &lt;/dependency&gt;
          &lt;dependency&gt; 
              &lt;groupId&gt;com.querydsl&lt;/groupId&gt; 
              &lt;artifactId&gt;querydsl-jpa&lt;/artifactId&gt; 
          &lt;/dependency&gt;
  
           &lt;plugin&gt;
                  &lt;groupId&gt;com.mysema.maven&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-apt-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;process&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;outputDirectory&gt;target/generated-sources&lt;/outputDirectory&gt;
                              &lt;processor&gt;com.querydsl.apt.jpa.JPAAnnotationProcessor&lt;/processor&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>