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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -