如何将XML校验改成本地校验
我在structs+spring+hibernate的 整合当中
我将applicationContext.xml这配置文件中的
<?xml version= "1.0 " encoding= "UTF-8 "?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN "
"http://www.springframework.org/dtd/spring-beans.dtd ">
<beans>
<bean id= "dataSource " class= "org.springframework.jdbc.datasource.DriverManagerDataSource ">
<property name= "driverClassName "> <value> com.mysql.jdbc.Driver </value> </property>
<property name= "url "> <value> jdbc:mysql://localhost:3306/itadb </value> </property>
<property name= "username "> <value> root </value> </property>
<!-- Make sure <value> tags are on same line - if they 're not,
authentication will fail -->
<property name= "password "> <value> 123456 </value> </property>
</bean>
--------------------------------
改成:
<?xml version= "1.0 " encoding= "UTF-8 "?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN "
"http://www.springframework.org/dtd/spring-beans.dtd ">
<beans>
<bean id= "dataSource " class= "org.springframework.jdbc.datasource.DriverManagerDataSource ">
<property name= "driverClassName " value= "com.mysql.jdbc.Driver "/>
<property name= "url " value= "jdbc:mysql://localhost:3306/itadb "/>
<property name= "username " value= "root "/>
<!-- Make sure <value> tags are on same line - if they 're not,
authentication will fail -->
<property name= "password " value= "123456 "/>
</bean>
--------------------------------------
如果把网络断开,就无法读取这个XML文件,必须要将网络 打开
请问如何将网络校验改成本地校验
请 帮帮忙
------解决方案-------------------- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN "
"http://localhost/dtd/spring-beans.dtd ">