에러해결 (1) 썸네일형 리스트형 Spring boot, Gradle 프로젝트에서 Groovy 파일 컴파일하기 - 프로젝트 구조 src/main/java /com.hyunjin.study /controller /service /model /mapper +-- MybatisMapper.groovy Application.java /resources +-- application.yml /test build.gradle 스프링부트 프로젝트 내부에서 goovy를 사용한 상황 @Mapper interface MybatisMapper { @Select(""" Select post_id, post_title, post_author FROM POST """) List getPosts(); groovy를 사용하면 위와 같이 Triple-single-quoted strings을 사용해 sql문을 편하게 작성할 수 있다. 대신, gr.. 이전 1 다음