728x90
오류. QClass가 import 되지 않고 빨간색이었음 (지금은 오류 해결한 상태)
해결 방법
1. pom.xml에 아래와 같이 설정
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-sql</artifactId>
<version>4.1.4</version>
</dependency>
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-sql-spring</artifactId>
<version>4.1.4</version>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.4.4</version>
</plugin>
<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>
</plugins>
</build>
2.
'두두의 IT > Trouble Shooting' 카테고리의 다른 글
IntelliJ + Spring Boot "Process finished with exit code 0" (0) | 2022.07.01 |
---|---|
IntelliJ + Spring Boot + Postgresql 오류 (0) | 2022.06.29 |
IntelliJ에서 xxx.jsp 직접 실행 오류 (0) | 2022.05.09 |
Tomcat v8_log 한글 깨짐 해결 (0) | 2022.05.09 |
IntelliJ Spring Boot Run 버튼 비활성화 됐을 때 (0) | 2022.05.06 |