使用策略模式消除代碼中繁雜的if-else

說明 基於SpringBoot,使用策略模式進行封裝,意在消除代碼中繁雜的if-else。 示例 public interface SchoolService { String handler(); } @Component @HandlerOrder(type = SchoolService.class) public class ChinaSchoolServiceImpl imple
相關文章
相關標籤/搜索