java - SpringMVC Error -


i have problems in spring mvc web

org.springframework.beans.factory.beandefinitionstoreexception: failed read candidate component class: file [/volumes/data/obasy/computer science/java projects/netbeans/web apps/springmvcfrom/build/web/web-inf/classes/com/tutorialspoint/helloworldcontroller.class]; nested exception java.lang.incompatibleclasschangeerror: org/springframework/core/type/classreading/annotationmetadatareadingvisitor

java.lang.incompatibleclasschangeerror: org/springframework/core/type/classreading/annotationmetadatareadingvisitor

please post config files. otherwise hard determine caused problem.

a controller class should annotated @controller, this

@controller public class helloworldcontroller() {  ... } 

and spring mvc config should have component scan either through xml

<context:component-scan base-package="package.of.helloworldcontroller" /> 

or through java config

@config @componentscan(basepackage = {"package.of.helloworldcontroller"}) @enablewebmvc public class webmvcconfig extends ... 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -