No validator could be found for constraint 'jakarta.validation.constraints.NotEmpty' validating type
@NotEmpty를 이용해서 validation check를 하고 있었는데 empty의 경우 컬렉션 또는 문자열 타입만 사용할 수 있다.
객체에 @NotEmpty를 사용해서 에러 발생 -> @NotNull로 변경
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "totalMemberBankDcPrice" (class com.fassto.godomallorderapi.domain.order.dto.response.godomall.GodomallOrderResponse), not marked as ignorable (63 known properties: "depositor", "totalCouponOrderDcPrice", "orderGoodsNm", "memGroupNm", "totalCouponDeliveryDcPrice", "orderTypeFl", "realTaxFreePrice", "orderIp", "useDeposit", "orderDate", "orderGoodsCnt", "orderInfoDataList", "pushCode", "totalDeliveryCharge", "realTaxSupplyPrice", "orderNo", "orderGoodsDataList", "apiOrderNo", "paymentDt", "totalGoodsDcPrice", "totalMyappDcPrice", "idx", "settlePrice", "mallSno", "useMileage", "totalDeliveryInsuranceFee", "overseasSettlePrice", "memId", "taxFreePrice", "accountNumber", "addField", "orderStatus", "totalMemberOverlapDcPrice", "orderGoodsNmStandard", "appOs", "totalMileage", "bankName", "orderDeliveryDataList", "taxVatPrice", "totalMemberMileage", "realTaxVatPrice", "orderEmail", "taxSupplyPrice", "orderGoodsData", "overseasSettleCurrency", "memNo", "totalGoodsPrice", "totalGoodsMileage", "giftData", "orderChannelFl", "totalCouponGoodsDcPrice", "statisticsAppOrderCntFl", "totalMemberDcPrice", "giftDataList", "firstSaleFl", "totalCouponGoodsMileage" [truncated]])
at [Source: (StringReader); line: 231, column: 14] (through reference chain: com.fassto.godomallorderapi.domain.order.dto.response.godomall.OrderReturnRoot["return"]->com.fassto.godomallorderapi.domain.order.dto.response.godomall.OrderSearchResponse["order_data"]->java.util.ArrayList[0]->com.fassto.godomallorderapi.domain.order.dto.response.godomall.GodomallOrderResponse["totalMemberBankDcPrice"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[jackson-databind-2.17.1.jar:2.17.1]
JSON에는 totalMemberBankDcPrice 값이 존재하지만 매핑 대상이 되는 Class에 해당 field가 존재 하지 않아서 데이터를 맵핑시키지 못해 발생하는 현상
=> Class에 @JsonIgnoreProperties(ignoreUnkown = true)를 추가하여 매핑되지 않는 값은 무시하도록 설정
java.io.NotSerializableException: com.fassto.godomallorderapi.domain.order.dto.response.godomall.OrderGoodsData
java.io.NotSerializableException: com.fassto.godomallorderapi.domain.order.dto.response.godomall.OrderGoodsData
Serializable을 implement 상속하지 않아서 발생한 오류
[PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.fassto.godomallorderapi.domain.order.entity.GodomallOrd column: gdm_goods_no (should be mapped with insert="false" update="false")
복사를 통해 속성값 추가하다가 @Columns(name="gdm_goods_no")도 동일하게 추가해서 동일한 컬럼명이 존재해서 발생한 오류