반응형 accesslevel1 [Error] com.querydsl.core.types.QBean com.example.queyrdsl.entity.test with modifiers "protected" QueryDSL 을 사용중에 아래와 같은 에러가 발생하였다. com.querydsl.core.types.QBean 'com.example.queyrdsl.entity.TestEntity' with modifiers "protected" TestEntity 에 대한 QClass 가 접근제어자의 범위 때문에 사용이 안되는 에러이다. 접근 제어 관련해서는 아래 참고 포스팅 참고 바란다. 원인은 TestEntity 클래스에 ..이상 생략@Entity@NoArgsConstructor(access = AccessLevel.PROTECTED) // public class TestEntity {..이하 생략 빨간 부분이 문제이다. AccessLevel 을 public 으로 올려주면 에러가 해결 된다.참고 포스팅http.. 2024. 6. 11. 이전 1 다음 반응형