毕业设计外文资料翻译
web.xml:-
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="1.0" xmlns="http//http://www.77cn.com.cn/xml/ns/javaee"
xmlns:xsi="http://www.77cn.com.cn/2001/XMLSchema-instance"
xsi:schemalLocation="http://www.77cn.com.cn/xml/ns/javaee
http://www.77cn.com.cn/xml/ns/javaee/web-app-2_5.xsd">
<listener><listener-Class>
org.springframework.web.context.ContextLoaderListener
</listener-Class></listener>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servletclass>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/send/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
以上就是xml文件,xml将与传入到服务器的请求经行交互。xml文件中明确了要调度的servlet的名称,应用程序上下文和index.jsp作为欢迎页面。url的类型定义为*.*,这意味着它将会接受任意类型的传入请求。
ApplicationContext.xml – ApplicationContext建立在BeanFactory之上,它使AOP 特征、消息资源处理和事件传播更容易集成在一起。BeanFactory提供了框架的配置和基本的功能,ApplicationContext则大大提高了应用的性能。当在j2EE的环境下开发应用程序,ApplicationContext是必不可少的。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.77cn.com.cn/schema/beans"
xmlns:xsi="http://www.77cn.com.cn/2001/XMLSchema-instance"
xmlns:p="http://www.77cn.com.cn/schema/p"
5