Spring小问题,在线等!!!!
最近在学习spring aop在断网时,eclipse报错
applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean id="BeforeAdvice" class="com.kedacom.spring.aop.BeforeAdvice"></bean>
<bean id="AfterAdvice" class="com.kedacom.spring.aop.AfterAdvice"></bean>
<bean id="CompareInterceptor" class="com.kedacom.spring.aop.CompareInterceptor"></bean>
<bean id="StudentTagget" class="com.kedacom.spring.aop.StudentImpl"></bean>
<bean id="Student" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>
com.kedacom.spring.aop.Student
</value>
</property>
<property name="Interceptornames">
<list>
<value>BeforeAdvice</value>
<value>AfterAdvice</value>
<value>CompareInterceptor</value>
</list>
</property>
<property name="Target">
<ref bean="studenttarget"/>
</property>
</bean>
</beans>
错误信息:
2012-1-30 17:36:06 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from file [F:\myeclipse workspace\Spring_Aop\src\applicationContext.xml]
Exception in thread "main"
org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from file [F:\myeclipse workspace\Spring_Aop\src\applicationContext.xml];
nested exception is java.net.
UnknownHostException: www.springframework.org
java.net.UnknownHostException: www.springframework.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1041)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)
at com.sun.or