在启动tomcat服务器时,我遇到了异常
SEVERE: Servlet /MavenWeb threw load() exception
java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet
cannot be cast to javax.servlet.Servlet
Run Code Online (Sandbox Code Playgroud)
我正在使用spring3但是在我的lib文件夹中有jar spring2-5-6,我从pom.xml中删除它但仍然出现在lib文件夹中 - 虽然我不确定这是否是一个问题.我正在使用Eclipse IDE.谢谢!!
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Draft-6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.5.6-Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.1.2.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.1.2.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.1.2.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>3.1.2.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.1.2.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1-b01</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webflow</artifactId>
<version>1.0.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
Run Code Online (Sandbox Code Playgroud) 我发现文件解释说oracle使用这些来进行性能调优等但是并不完全理解它实际上做了什么.有人可以用简单的词语向我解释一下非常基本的例子吗?
我是基于注释的编程的新手,不知道要添加到org.springframework.transaction.annotation.Transactional的 pom.xml中的maven工件,我用google搜索(如搜索结果的前5页)但无法找到什么是我在寻找.我正在使用弹簧3.此外,如果有任何在线教程,以了解更多关于春天的注释.谢谢!!
java ×2
spring-mvc ×2
database ×1
hibernate ×1
java-ee ×1
oracle ×1
performance ×1
servlets ×1