Spring MVC Error: org.springframework.web.bind.annotation.RequestMapping.name () Ljava / lang / String;

What is the main reason for this error in spring mvc. I am using spring mvc 4.1.4 in my project.

nested exception is java.lang.NoSuchMethodError: org.springframework.web.bind.annotation.RequestMapping.name()Ljava/lang/String;
+4
source share
2 answers

If you go here:

https://spring.io/docs

and select 'Spring Framework' and then look through the API for v3 and v4, you will see that annotation:

org.springframework.web.bind.annotation.RequestMapping

has the attribute 'name' in v4, but not in v3.

WEB-INF/lib , , , spring -web: v3 v4, v3, , (v4).

POM, " ", Spring 4.

http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#overview-maven-bom

Spring JARs Maven. , , Spring, . , Maven " " (BOM). spring -framework-bom dependencyManagement Spring ( , ) .

, JAR v3, , . , Eclipse , POM, "dependency-hierachy", spring -web , . POM, :

http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

, , BoM.

+3

. .

0

All Articles