工厂模式+策略模式替换if-else(Emmm....if-else真香)
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.List;
i.
原创
2020-06-16 12:53:13 ·
478 阅读 ·
0 评论