일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- codedeploy error
- chartjs
- node
- PostgreSQL
- Spring Error
- codedeploy
- Airflow
- kubeflow
- java bigdecimal
- Spring
- bootstrap
- aws cicd
- 도커
- IntelliJ
- aws
- JavaScript
- SQL
- codebuild
- chart.js
- COALESCE
- AWS CI/CD 구축하기
- docker
- Kafka
- Jenkins
- codepipeline
- redis
- VPN
- Flux
- or some instances in your deployment group are experiencing problems.
- Python
- Today
- Total
목록백엔드/Spring (133)
Small Asteroid Blog
날짜 데이터 조회시 String 으로 데이터를 받아오고 있었고 사용해야 하는 값은 LocalDate 였다. String 으로 받아온 후 DateFormatter을 하지 않고 값을 api 에서 받아올때부터 LocalDate 로 사용했다. @RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE, pattern="yyyy-MM-dd") LocalDate startDate
JPA ERROR :: Unable to locate Attribute with the the given name on this ManagedType 헤당 오류의 원인은 오타이다. DB 에 정의한 내용과 Entity 에서 선언한 컬럼명이 달라서 생기는 오류이다.

controller public MemberDto findMember(@AuthenticationPrincipal U principal , @Parameter(name = "page", in = ParameterIn.QUERY) Pageable pageable ) { return MemberService.findMember(principal, pageable); } service @Override public MemberDto findMember(U principal, Pageable pageable) { memberService.findMember(pageable); // 권한 확인 if(principal.getAuthorities().toString().equals("[SUPER_ADMIN]")){ ..
JPA 연관관계 사용 중 아래와 같은 에러가 나왔다. object references an unsaved transient instance - save the transient instance before flushing 오류 이유 해당 오류가 생기는 이유는 FK 로 사용되는 컬럼값이 없는 상태에서 데이터를 넣으려다보니 생기는 에러인 것이다. 예를 들어 아래와 같은 내용이 있을 때 Member (id, name) Address (id, address1, member_id) Member에 데이터를 넣지 않고 Address 에 데이터를 넣으려고 하면 member_id 값이 없어서 에러가 발생하는 것이다. 해결 방법 해결 방법으로는 연관관계를 설정할 때 cascade 옵션을 설정해준다. cascade = Ca..
jpa 에서 id를 역순 정렬해 가장 상위에 있는 id 깂을 가져오고자 한다. Top / First 어느것을 사용하던 결과는 동일하다. public interface MemberEntityRepository extends JpaRepository { MemberEntity findFirstByOrderByIdDesc(); MemberEntity findTop1ByOrderByIdDesc(); }

(no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) 다음과 같은 에러가 났다. 해당 오류는 기본 생성자를 추가해서 해결했다.