
개발 하던 중 택배추적 API를 서버에서 호출하여 처리하는 로직을 구현하게되었습니다. RestTemplate으로 개발 중 알게된 내용을 정리하여 공유해보겠습니다. 더 좋은 방법이나 이상한 점이 있다면 댓글로 알려주시면 감사하겠습니다. Examples getForEntity() String baseUrl = "localhost:8088/api/v1/test"; RestTemplate restTemplate = new RestTemplate(); ResponseEntity response = restTemplate.getForEntity(baseUrl, String.class); getForEntity를 사용하면 위와같이 ResponseEntity 객체를 return 받을 수 있습니다. getForObjec..

Querydsl SettingsSpring boot with Querydsl 세팅을 해보겠습니다.개발환경spring boot 2.3querydslh2build.gradleplugins { ... ... id "com.ewerk.gradle.plugins.querydsl" version "1.0.10" } dependencies { ... ... implementation 'com.querydsl:querydsl-jpa' } Querydsl 플러그인 설정을 해봅니다.build.gradle// 맨 하단에 적으면 된다. def querydslDir = "$buildDir/generated/querydsl" querydsl { jpa = true querydslSourcesDir = querydslDir } s..
Variable Between Col1 and Col2 in Querydsl (BooleanExpression) Querydsl 사용시 기준을 컬럼이 아닌 원하는 변수로 잡고 하는 방법 특정 시간대에 중복이 안되도록 하는 기능을 만드는 도중 startTime과 endTime 을 인자로 받는 메소드를 만들었다. AS-IS private boolean checkDuplication(LocalDateTime startTime, LocalDateTime endTime) { QReservation reservation = QReservation.reservation; Reservation findReservation = queryFactory .selectFrom(reservation) .where(reserva..
- Total
- Today
- Yesterday
- spring web
- paawordencoder
- booleanExpression
- 개발
- Spring
- 스프링부트
- springsecurity
- Python
- 자바
- ubuntu
- 스프링
- like절
- springboot
- ControllerAdvice
- ResourceHttpReqeustHandler
- java11
- mapstruct
- Security
- Java
- 스프링부트 시작하기
- QueryDSL
- 웹서비스
- @formula
- 유사결과
- API
- howtoinstallnginx
- 스프링시큐리티
- boot
- FastAPI
- JPA
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |