@SuppressWarnings("unchecked")
public static <T> T getBean(String name) {
return (T) ContextLoader.getCurrentWebApplicationContext()
.getBean(name);
}
public static TradeService getDao(){
if(tradeService==null){
tradeService = SpringUtil.getBean("tradeService");
}
return tradeService;
}