-
<?xml version="1.0" encoding="UTF-8"?>
-
<beans xmlns="" xmlns:xsi=""
-
xmlns:context=""
-
xmlns:aop=""
-
xsi:schemaLocation="
-
/spring-context-4.0.xsd
-
/spring-beans-4.0.xsd
-
/spring-aop-4.0.xsd"
-
default-autowire="byName">
-
<bean id="servletHandlerAdapter" class="org.springframework.web.servlet.handler.SimpleServletHandlerAdapter"/>
-
<bean name="/servlet" class="wanjm.servlet" />
-
</beans>
这是最简单的配置方法
其中servlet类就是普通的j2ee Servlet;
-
<bean id="servletHandlerAdapter" class="org.springframework.web.servlet.handler.SimpleServletHandlerAdapter"/>
-
<bean name="/servlet" class="wanjm.servlet" />
阅读(736) | 评论(0) | 转发(0) |