📅  最后修改于: 2022-03-11 14:52:47.106000             🧑  作者: Mango
@Bean
public ModelMapper modelMapper() {
ModelMapper modelMapper = new ModelMapper();
modelMapper.getConfiguration()
.setMatchingStrategy(MatchingStrategies.STRICT);
}