servlet 引述spring
servlet 引用springWebApplicationContext wac WebApplicationContextUtils.getWebApplicationContext(g
servlet 引用spring
WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());//获取spring的context ? ??
ClientConfigClass clientConfigClass = (ClientConfigClass) wac.getBean("ClientConfigClassBean");
clientConfigClass.getLogFilePath();
<bean id="ClientConfigClassBean"><property name="defaultServerIP"> <value>172.20.32.237</value></property><property name="logFilePath"> <value>./log</value></property><property name="sendFailRetryNum"> <value>10</value></property></bean>