개발/Spring Boot
-
[QueryDsl] QEntity 연관관계 초기화 2Depth 이상 적용시키기개발/Spring Boot 2021. 10. 1. 18:19
https://querydsl.com/static/querydsl/4.2.1/reference/html/ch03s03.html#d0e2181 3.3. Code generation The Java 6 APT annotation processing functionality is used in Querydsl for code generation in the JPA, JDO and Mongodb modules. This section describes various configuration options for the code generation and an alternative to APT usage. 3.3.1. Path initi querydsl.com By default Querydsl initializ..
-
Mybatis Interceptor 자동 Paging처리 사용방법개발/Spring Boot 2021. 4. 24. 13:53
Github 소스코드보기 Notion으로 보는것을 추천 Mybatis Interceptor 자동 Paging처리 만들기(1) 바로가기 Mybatis Interceptor 자동 Paging처리 만들기(2) 바로가기 ♣️미리보기 H2 Database Table Data HTTP GET 통신 return 값 { "list": [ { "num": 1, "id": "test1", "pw": "test1", "name": "테스트1" }, { "num": 2, "id": "test2", "pw": "test2", "name": "테스트2" } ], "pageInfo": { "page": 1, "size": 2, "totalCount": 3 } } ♦ Controller 매개변수 PageInfo 상속 @RestCon..
-
Mybatis Interceptor 자동 Paging처리 만들기(2)개발/Spring Boot 2021. 4. 20. 17:44
Github 소스코드보기 Notion으로 보는것을 추천 Mybatis Interceptor 자동 Paging처리 만들기(1) 바로가기 ⚫Interceptors PrepareInterceptor @Override public Object intercept(Invocation invocation) throws Throwable { try { StatementHandler statementHandler = (StatementHandler) invocation.getTarget(); MetaObject metaStatementHandler = MetaObject.forObject(statementHandler, DEFAULT_OBJECT_FACTORY, DEFAULT_OBJECT_WRAPPER_FACTORY, ..
-
Mybatis Interceptor 자동 Paging처리 만들기(1)개발/Spring Boot 2021. 4. 19. 17:09
Github(https://github.com/rldhks8745/spring-boot-practice) Notion(https://www.notion.so/Mybatis-Interceptor-Paging-35a3e8b167ad47eca25acb56f1fb9795) - Notion Base로 작성된 글이기 때문에 Notion으로 보시기를 추천드립니다. Mybatis Interceptor 자동 Paging처리 만들기(2) 바로가기 ♣️미리보기 H2 Database Table Data HTTP GET 통신 return 값 { "list": [ { "num": 1, "id": "test1", "pw": "test1", "name": "테스트1" }, { "num": 2, "id": "test2", "pw": ..
-
@ConfigurationProperties, @EnableConfigurationProperties개발/Spring Boot 2020. 5. 15. 10:44
maven dependency 추가 org.springframework.boot spring-boot-configuration-processor true 준비물 1. application.properties or application.yml 2. properties의 값을 binding 받을 TestVO Class 준비 - @ConfigurationProperties(prefix="test")를 통해 test로 지정된 test.key=value로 설정된 값들을 멤버변수에 bind 3. @ConfigurationProperties 설정이 되어있는 Class를 주입받을 수 있도록 Test Class 준비 - @EnableConfigurationProperties(TestVO.class)를 통해 TestVO ..