You can configure default unmappedTargetPolicy via annotation processor arguments: -Amapstruct.unmappedTargetPolicy=ERROR.
However, as I can see, it is not possible to configure unmappedSourcePolicy in the same way (by adding -Amapstruct.unmappedSourcePolicy=ERROR argument).
Could you please add this functionality?