![](/icons/5072chengxu.gif)
Spring 和 Hibernate 都支持annotation开发应用
![](/icons/5072chengxu.gif)
![](/icons/5072chengxu.gif)
![](/icons/5072yi.gif)
![](/icons/5072de.gif)
![](/icons/5072chengxu.gif)
![](/icons/5072de.gif)
首先我们建
![](/icons/5072yi.gif)
![](/icons/5072de.gif)
修改WEB-INF/web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="ascweb" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>ascweb</display-name>
<!-- 载入Spring配置文件 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value><!-- 自动载入
![](/icons/5072de.gif)
</context-param>
<listener>
<listener-
![](/icons/5072class.gif)
![](/icons/5072class.gif)
</listener>
="xspace-totlerecord">11="xspace-totlepages">1/11="xspace-current">12345678910>>|
最新评论