是这个
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
解决方案 »
- SQLQuery query =session.createSQLQuery(sql);为空
- 请教高手:ssh中一对多数据关联时,为什么一方无法正常插入数据,多方则可以正常插入?
- java 打开外部exe程序带参数
- struts2 下 jspSmartUpload组件冲突用不了,怎么办啊 先谢谢啦!
- 急!!!!!middlegen-hibernate 生成映射文件的问题
- ejb的问题
- 在EJB的CMP中实现多个条件查询????
- 弱智问题,java源文件路径和编译的问题
- jboss 中涉及 session 的一个问题
- 有关BMP和CMP的问题
- SVN出问题,unable to connect to a repository at url 'svn //localhost'
- qq单点登录的问题
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
这不能定义在方法外吗?