0 0

新手做东西。。。错误代码一大堆10

信息: The listener "org.springframework.web.util.Log4jConfigListener" is already configured for this context. The duplicate definition has been ignored.
2011-7-12 21:53:53 org.apache.catalina.core.StandardContext addApplicationListener
信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.
2011-7-12 21:53:54 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener
java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' = [D:\apache-tomcat-6.0.16\webapps\students\] instead of [D:\apache-tomcat-6.0.16\webapps\students.myeclipse.bak\] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:146)
at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:118)
at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2011-7-12 21:53:54 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2011-07-12 21:53:54,860 [org.springframework.web.context.ContextLoader]-[INFO] Root WebApplicationContext: initialization started
2011-07-12 21:53:55,016 [org.springframework.web.context.support.XmlWebApplicationContext]-[INFO] Refreshing org.springframework.web.context.support.XmlWebApplicationContext@1073e42: display name [Root WebApplicationContext]; startup date [Tue Jul 12 21:53:55 CST 2011]; root of context hierarchy
2011-07-12 21:53:55,251 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/applicationContext.xml]
2011-07-12 21:53:55,360 [org.springframework.web.context.ContextLoader]-[ERROR] Context initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 43 in XML document from ServletContext resource [/WEB-INF/classes/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'tx:method'. One of '{"http://www.springframework.org/schema/tx":attributes}' is expected.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'tx:method'. One of '{"http://www.springframework.org/schema/tx":attributes}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1777)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
... 37 more
2011-7-12 21:53:55 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 43 in XML document from ServletContext resource [/WEB-INF/classes/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'tx:method'. One of '{"http://www.springframework.org/schema/tx":attributes}' is expected.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'tx:method'. One of '{"http://www.springframework.org/schema/tx":attributes}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1777)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:377)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
... 37 more
2011-7-12 21:53:55 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-7-12 21:53:55 org.apache.catalina.core.StandardContext start
严重: Context [/students.myeclipse.bak] startup failed due to previous errors
问题补充
applicationContext.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context.xsd
  http://www.springframework.org/schema/tx
                     http://www.springframework.org/schema/tx/spring-tx.xsd
                    http://www.springframework.org/schema/aop
                    http://www.springframework.org/schema/aop/spring-aop.xsd">

<!-- 配置数据源 -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" >
<!-- 方法注入 -->
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:students"></property>
<property name="username" value="roc"></property>
<property name="password" value="123456"></property>
</bean>
<!-- 注解Bean -->
<context:component-scan base-package="com.roc.students.entity"/>
<!-- 封装hib中的sessionFactory -->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<!-- 设置数据库方言 -->
<property name="hibernateProperties">
<props >
<prop key="hibernate.dialect"> org.hibernate.dialect.SQLServerDialect</prop>
<prop key="show_sql">true</prop>
</props>
</property>

<property name="mappingResources">
<list>
<value>com/roc/students/entity/Users.hbm.xml</value>
<value>com/roc/students/entity/CurriculumUser.hbm.xml</value>
<value>com/roc/students/entity/Curriculum.hbm.xml</value></list>
</property>
</bean>

<bean id="transactionManager"
        class="org.springframework.orm.hibernate3.HibernateTransactionManager">
       <property name="sessionFactory">
            <ref bean="sessionFactory" />
        </property>
    </bean>
    <tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="save* "  propagation="REQUIRED"/>
<tx:method name="delete* "  propagation="REQUIRED"/>
<tx:method name="find* "  propagation="REQUIRED"/>
</tx:attributes>
</tx:advice>
<aop:config proxy-target-class="true" >
<aop:advisor pointcut="execution(* com.roc.students.service.*Manager.* (..))" advice-ref="txAdvice"/>
</aop:config>



<bean id="UsersDAO" class="com.roc.students.dao.UsersDAO">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="CurriculumDAO"
class="com.roc.students.dao.CurriculumDAO">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="CurriculumUserDAO"
class="com.roc.students.dao.CurriculumUserDAO">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean></beans>
问题补充
web.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<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">
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>/WEB-INF/classes/applicationContext.xml</param-value>
  </context-param>
<!-- spring监听器 -->
   <listener>
  <listener-class>
  org.springframework.web.context.ContextLoaderListener
  </listener-class>
</listener>
  <!--log4j的配置相关 --> 
  <context-param> 
        <param-name>log4jConfigLocation</param-name> 
        <param-value>/WEB-INF/classes/log4j.properties</param-value> 
  </context-param> 
  <context-param> 
        <param-name>log4jRefreshInterval</param-name> 
        <param-value>60000</param-value> 
  </context-param>
  
   <!-- log4j监听器 -->
   <listener> 
        <listener-class> 
            org.springframework.web.util.Log4jConfigListener 
        </listener-class> 
   </listener> 
<!-- end --> 



  <!-- spring 编码过滤器 -->
  <filter>
  <filter-name>encodingFilter</filter-name>
  <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  <init-param>
  <param-name>encoding</param-name>
  <param-value>UTF8</param-value>
  </init-param>
  <init-param>
  <param-name>forceEncoding</param-name>
  <param-value>true</param-value>
  </init-param>
  </filter>
  <!-- hibernate延迟加载 -->
  <filter>
  <filter-name>hibernateOpenSessionInViewFilter</filter-name>
  <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
  </filter>
  <!-- struts 2 -->
  <filter>
  <filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  </filter>
  <filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
  </filter-mapping>


</web-app>
2011年12月06日 10:10

8个答案 按时间排序 按投票排序

0 0

楼上说的很对,很多东西不是敲出来就可以了,就是正确的,即便是你把applicationContext.xml中的东西全部正确的敲出来,你的程序还是无法运行的..

2011年12月20日 15:06
0 0

joknm 写道
大哥, 既然你是老手,有本事建一个空的 applicationContext.xml 的文件,不看任何的资料,把里面的配置全敲出来喂。


这个牛。。真的能不看任何的资料,把里面的配置全敲出来。。我想这个不叫老手,这叫不会学习,没经验咯。。

2011年12月06日 10:10
0 0

刚开始起步都这样,犯的错误越多,证明你成长的越快

2011年12月06日 10:10
0 0

就是嘛,高手还不是从这一步走过来的,大家干嘛对新人要求这么高呢,如果新人那么熟练准确的搞定工作,所谓的前辈还混个鬼啊

2011年12月06日 10:10
0 0

大哥, 既然你是老手,有本事建一个空的 applicationContext.xml 的文件,不看任何的资料,把里面的配置全敲出来喂。

2011年12月06日 10:10
0 0

llfzy 写道
正常的很。。谁没有个新手经历!。。错的多了。。经验就丰富了

2011年12月06日 10:10
0 0

正常的很。。谁没有个新手经历!。。错的多了。。经验就丰富了

2011年12月06日 10:10
0 0

有多个'webAppRootKey'
在web.xml中加入
<context-param>
        <param-name>webAppRootKey</param-name>
        <param-value>students.root</param-value>
    </context-param>

给'webAppRootKey' 指定值

2011年12月06日 10:10

相关推荐

    C++项目源代码(适合新手练手及参考)

    标题 "C++项目源代码(适合新手练手及参考)" 暗示这是一个针对C++初学者设计的编程项目,包含完整的源代码,并且有详细的注释,这对于学习者理解代码逻辑和C++语法非常有帮助。描述中提到的“答辩PPT”可能意味着...

    适合新手的oj题

    9. **错误处理与调试**:学会如何处理运行时错误,如空指针异常、除以零等,以及使用调试工具(如gdb)定位和修复问题。 10. **文件操作**:在oj题中,有时需要读取或写入文件,理解fstream库的用法很重要。 通过...

    C++入门经典代码

    《C++入门经典代码》是一份专为初学者设计的学习资源,它包含了丰富的实例和练习,旨在帮助新手快速掌握C++编程语言的基础知识。这份压缩包文件提供了多种类型的材料,如ReadMe.txt的引导文件,以及三个不同主题的...

    C++语言学习,新手笺言

    内存管理是C++的一个重要部分,包括栈内存和堆内存的使用。了解动态内存分配(new和delete操作符)以及智能指针(如unique_ptr、shared_ptr、weak_ptr)的概念,可以帮助避免内存泄漏和悬挂指针的问题。 再者,C++...

    C语言学习资料(适合新手)

    "C语言需注意的495个问题"则是一份详尽的C语言常见问题和陷阱的集合,涵盖了从基本语法错误到更高级的内存管理和类型转换等问题。这些问题的解决可以帮助初学者避免常见的编程误区,提高代码质量。例如,对于指针的...

    C++新手入门教程 I

    - **继承**:一个类可以从另一个类派生,继承其属性和行为,实现代码重用。 - **公有继承**、**私有继承**和**保护继承**:不同访问权限的继承方式。 - **虚函数**:通过虚函数实现多态,使得子类对象可以通过...

    epoll反应堆模型

    标题所指的知识点为“epoll反应堆模型”,而描述部分重复强调了这一点,即“epoll c++ linux 技术探讨,新手必备”。结合给出的内容片段,可以了解到这是一个关于在Linux环境下使用C++语言实现epoll模型的教程。...

    新手向二次开发源码分享cocos creator 开发的翻卡牌类小游戏

    在游戏开发领域,Cocos Creator 是一个备受欢迎的跨平台游戏引擎,尤其适合新手入门。这款开源工具集成了丰富的资源管理、可视化编辑器以及灵活的脚本系统,能够帮助开发者快速构建2D游戏。本项目分享的是一个使用 ...

    算法手写代码必备手册

    《算法手写代码必备手册》是一份由戴方勤编写的开放资源文档,旨在帮助那些准备赴北美寻找工作的程序员们,同时也适用于国内正在寻找工作机会的程序员及ACM算法竞赛的新手。这份手册提供了经典算法题目的范例代码,...

    java基础知识新手必备

    7. **异常处理**:Java提供了一种结构化的错误处理机制,即异常处理。try-catch-finally块用于捕获和处理运行时错误,使程序更加健壮。 8. **集合框架**:Java集合框架包括ArrayList、LinkedList、HashSet、HashMap...

    拾零工具箱(系统设置与维护工具) v10.2.rar

    更有甚者,以讹传讹,错误百出,广告一大堆,严重影响心情。 鉴于此,作者立志要开发一款界面精美、功能强大、操作简单、内容齐全、体积苗条的工具箱,历时一年多的开发,拾零工具箱不断完善,日臻完美。整合了一百...

    拾零工具箱v9.7

    更有甚者,以讹传讹,错误百出,广告一大堆,严重影响心情。 鉴于此,作者立志要开发一款界面精美、功能强大、操作简单、内容齐全、体积苗条的工具箱,历时一年多的开发,拾零工具箱不断完善,日臻完美。整合了一百...

    zoj代码集合

    【ZOJ代码集合】是一个专为ACM(国际大学生程序设计竞赛)爱好者准备的资源库,其中包含了丰富的算法实现和编程技巧。这个压缩包文件名“ZOJ入门与提高代码集”暗示了它旨在帮助初学者逐步提升编程能力,同时也为有...

    新手学linux C编程 第13章配套源码,可成功运行.rar

    这个压缩包文件"新手学linux C编程 第13章配套源码,可成功运行.rar"包含了能够帮助读者实践这些概念的源代码。 首先,让我们了解C语言在Linux环境中的基础。C语言是一种强大的、低级别的编程语言,被广泛用于系统...

    北大POJ新手入门题源文件大全

    《北大POJ新手入门题源文件大全》是针对北大计算概论课程初学者的一个宝贵资源,包含了前六次作业的源代码解答。这个压缩包旨在帮助新手快速掌握编程基础,了解编程竞赛的基本流程和解题策略。以下是这些文件中可能...

    為 CSDN-CSDN社区-C/C++-新手乐园 的朋友所回答的第二問題。

    9. **异常处理**:C++引入了异常处理机制(try-catch),用于捕获运行时错误,而C语言通常依赖于返回值和错误代码。 10. **标准库**:C++的标准库(STL)提供了容器(如vector、list、set等)、算法、迭代器和函数...

    JAVA经验集粹_新手乐园(含N多.txt格式文档).rar

    7. **JVM与内存管理**:了解Java虚拟机(JVM)的工作原理,包括类加载、内存区域(堆、栈、方法区等)以及垃圾回收机制,对优化代码性能很有帮助。 8. **Java标准库**:Java标准库提供大量预定义类和接口,如 Swing...

    C++入门经典代码 cpp

    这个压缩包“C++入门经典代码”显然包含了帮助新手理解并实践C++编程的一些基本示例。 首先,C++是一种面向对象的语言,它在C语言的基础上增加了类、模板、异常处理等功能,使得程序设计更加灵活和模块化。在入门...

    给java新手的一些建议-java知识点归纳(java基础部份) (2).pdf

    理解它们之间的转换,如装箱和拆箱,以及如何避免装箱后类型比较的错误,是编写高效代码的基础。Object类的`equals()`和`hashCode()`方法,以及String类的特性也需要掌握。 对象和实例的创建是面向对象编程的核心。...

    Sandbox:每次我都要测试一堆新东西时,都厌倦了一次又一次地重复做同样的事情。

    5. **学习与实验**:对于新手来说,沙盒是一个理想的场所,可以安全地学习和实践新的编程技巧。 压缩包文件"Sandbox-master"可能包含了一个完整的JavaScript沙盒环境实现,或者是一系列用于创建和管理沙盒的示例...

Global site tag (gtag.js) - Google Analytics