curl -X 'POST' \
  'http://localhost:8181/personalDetails' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "srNo": 0,
  "canCompanyCode": "string",
  "canCode": 0,
  "personalDto": {
    "canShortName": "string",
    "canFirstName": "string",
    "canMiddleName": "string",
    "canLastName": "string",
    "canFatherFirstName": "string",
    "canFatherMiddleName": "string",
    "canFatherLastName": "string",
    "canGuardianFirstName": "string",
    "canGuardianMiddleName": "string",
    "canGuardianLastName": "string",
    "canRelationCode": "string",
    "canTelephoneNumber": "string",
    "canMaritalStatus": "string",
    "canDateOfMarriage": "2025-06-03T10:38:48.334Z",
    "canSpouseFirstName": "string",
    "canSpouseMiddleName": "string",
    "canSpouseLastName": "string",
    "canNumberOfChildren": 0
  },
  "nativePlaceDto": {
    "canNativePlace": "string",
    "canNativeState": "string",
    "canNationality": "string",
    "canDomicileState": "string"
  },
  "medicalDetailsDto": {
    "canMajorIllness": "string",
    "canIllnessDetails": "string",
    "canHandicap": "string",
    "canHandicapDetail": "string",
    "canHandicapCategory": "string",
    "canBloodGroup": "string",
    "canRhFactor": "string"
  },
  "casteDetailsAndLanguageKnown": {
    "canCasteCode": "string",
    "canCasteCategory": "string",
    "canCommunityCode": "string",
    "canMotherTongue": "string",
    "languageDetails": [
      {
        "canLanguageSerialNum": 0,
        "canLanguage": "string",
        "canLanguageSpeakInd": "string",
        "canLanguageReadInd": "string",
        "canLanguageWriteInd": "string"
      }
    ]
  },
  "otherDetailsDto": {
    "canExServiceMan": "string",
    "canSourceOfRecruitment": "string",
    "canCriminalOffences": "string",
    "canCriminalDetails": "string",
    "canLitigation": "string",
    "canLitigationDetails": "string",
    "canMembership": "string"
  },
  "statutoryDetailsDto": {
    "canPermanentAccNumber": "string",
    "canDrivingLicence": "string",
    "canAadharCardNo": "string",
    "canPFAccNo": "string",
    "canUANNo": "string",
    "canPassportNumber": "string",
    "canPlaceOfIssue": "string",
    "canDateOfIssue": "2025-06-03T10:38:48.334Z",
    "canPassportExpiryDate": "2025-06-03T10:38:48.334Z",
    "canPassportfirstName": "string",
    "canPassportmiddleName": "string",
    "canPassportlastName": "string"
  },
  "canFileType": "string",
  "canFileName": "string",
  "canFileData": "string",
  "canFileLength": 0,
  "canNoOf2Wheelers": 0,
  "canNoOf4Wheelers": 0,
  "canVehicleRegistrationNo": "string",
  "canBondedYN": "string",
  "canSubmitBondYN": "string",
  "canBondPeriodInMths": 0,
  "canBondSubmitedOn": "2025-06-03T10:38:48.335Z",
  "canBondEndDate": "2025-06-03T10:38:48.335Z",
  "canJobProfileExp": 0,
  "canPensionAccNo": "string",
  "canCreationDate": "2025-06-03T10:38:48.335Z",
  "createdById": 0,
  "canValidUpto": "2025-06-03T10:38:48.335Z",
  "updatedByComp": "string",
  "updatedById": 0,
  "canSysPensionAccNo": "string",
  "canAdminPensionAccNo": "string",
  "canPFIndication": "string",
  "canAdminRemarks": "string",
  "emergencyContact": {
    "canContactName": "string",
    "canContactRelation": "string",
    "canContactAddress": "string",
    "canContactTelephoneNo": "string"
  },
  "nativePlace": {
    "canNativePlace": "string",
    "canNativeState": "string",
    "canNationality": "string",
    "canDomicileState": "string"
  },
  "medicalDetails": {
    "canMajorIllness": "string",
    "canIllnessDetails": "string",
    "canHandicap": "string",
    "canHandicapDetail": "string",
    "canHandicapCategory": "string",
    "canBloodGroup": "string",
    "canRhFactor": "string"
  },
  "createdByComp": "string"
}'


@Repository
public interface PersonalDetailsRepo extends JpaRepository<PersonalDetailsDao, Integer> {

    @Query("SELECT can FROM PersonalDetailsDao can WHERE " +
           "(:canCode IS NULL OR can.canCode = :canCode) AND " +
           "(:canCompanyCode IS NULL OR can.canCompanyCode = :canCompanyCode)")
    List<PersonalDetailsDao> findOptionalBy(
            @Param("canCode") Integer canCode,
            @Param("canCompanyCode") String canCompanyCode
    );


}


i want to create post request in spring boot