é¦å
å¨é
ç½®æ件é注æbeanï¼å¦ä¸æ示ï¼
[html] view plain copy
<beans:bean id="clientService" class="cn.bandlive.service.impl.ClientServiceImpl">
<property name="clientMapper" ref="clientDao"></property>
<property name="clientThirdplatformMapper" ref="clientThirdplatformDao"></property>
</beans:bean>
ç¶åå¨jspç<%%>ä¸éè¿WebApplicationContextUtilså·¥å
·ç±»è·åApplicationContext对象ï¼å¦ä¸æ示ï¼
[html] view plain copy
ApplicationContext ctx =
WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());
ClientService clientService = (ClientService) ctx.getBean("clientService");
è¿æ ·ä½ å°±å¯ä»¥è°ç¨clientServiceéé¢çæ¹æ³
温馨提示:答案为网友推荐,仅供参考