Exception should be thrown if there are unknown external properties and its corresponding @ConfigurationProperties has attributes 'ignoreUnknownFields' as false and 'ignoreInvalidFields' as true

Fixes gh-22308

Comment From: pivotal-issuemaster

@YangfanCheng1 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: wilkinsona

Thanks for the PR, @YangfanCheng1. The CLA requires the changes that you're submitting to be your original work. Unfortunately, that's not the case as you copy-pasted some of the changes from my issue comment. Thanks anyway but we'll have to close this one.