-
[Spring Framework] QueryDsl 적용하기 (with Maven, IntelliJ) - 소스코드에 generated 폴더 없이 사용하기Back End/Spring Framework 2022. 8. 28. 22:32
pom.xml (Maven)
빌드파일에 QClass 들을 포함시킵니다.
<!-- 빌드파일에 QClass 생성 --> <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>
IntelliJ
빌드파일에 포함된 QClass 들을 소스코드에서 인식할 수 있게 합니다.
그리고 maven install 을 하고 작업하면 끝!
경로 : File - Project Structure - Modules - Sources# Reference
728x90'Back End > Spring Framework' 카테고리의 다른 글
[Spring Framework] 다국어 처리 설정 (message properties) (0) 2022.08.15 [Spring Framework] Maven 라이브러리 연동(ClassNotFoundException: javax.servlet.jsp.jstl.core.Config) (1) 2022.06.09 [Spring] Controller 에서 가변 json body 받기 (0) 2022.05.21 [Spring] Content type 'text/plain;charset=UTF-8' not supported (0) 2022.05.21 [Spring Framework] Spring Framework 에서 컴포넌트 스캔 (feat. Spring Boot) (0) 2022.04.16