Boot (2) 썸네일형 리스트형 [JPA] Null value was assigned to a property exception 1. 에러 원인 JPA를 사용해 개발을 하다 보면 database column은 nullabel 속성이지만 entity의 field는 primitive 타입으로 설정할 때가 있다. 그럴 때 primitive type에는 null 값을 할당할 수 없어 해당 에러가 발생한다. 2. example Entity 설정 code // TestEntity.java @Getter @Setter @NoArgsConstructor @AllArgsConstructor @Entity public class TestEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private int testPriority; } // TestRep.. Spring boot aws rds 로컬 연동 에러 AWS RDS 와 spirng boot 연동시 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'amazonRDS' 에러가 발생하는 경우가 있다. 찾아보니 로컬 환경에서는 region 값을 직접 설정해 줘야 한다.default로 cloud.aws.region.auto=true설정이지만 이는 실제 ec2 컨테이너에 배포된 환경에서만 정상 작동하는 것같다. 그래서 아래와 같이 application.properties 파일안에 리전 정보를 정적으로 삽입해 주었다. cloud.aws.region.static=ap-northeast-2 리전 표는 https://docs.aws.amazon.com/ko_kr/.. 이전 1 다음