1. 程式人生 > >spring mvc 不用注入方式,直接獲取Service介面方式

spring mvc 不用注入方式,直接獲取Service介面方式

HorsemanService horsemanService = SpringContextHolder.getInstance().getBean("horsemanService", HorsemanService.class);
HorsemanDayEndService horsemanDayEndService = SpringContextHolder.getInstance().getBean("horsemanDayEndService", HorsemanDayEndService.class);