报错摘要
com.example.security.entity.QUserEntity
Failed to instantiate [org.springframework.data.jpa.repository.support
Error creating bean with name 'querydslBindingsFactory' defined in class path
Failed to instantiate [org.springframework.data.web.querydsl
Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource
经过查资料啊 q实体没有添加
但是我compile了啊
原来是忘记装插件了
<!--该插件可以生成querysdl需要的查询对象,执行mvn compile即可-->
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>