Cannot find class [xxx] for bean with name ‘‘ defined in class

问题:Cannot find class [xxx] for bean with name ‘’ defined in class

提供一种解决办法,也许可以解决你的问题

  • 1 如果这个类是自己写的,clean。
  • 2 如果这个类来自jar包,
    (1)Build Path->Configure Build Path看看jar包有没有导入。
    (2)如果未导入,则导入
    (3)导入完成后,在Deployment Assembly中点击Add添加导入的jar包。
    (4)各种clean,重启
    build path是将class文件放到buildpath的设置路径中
    web deployment assembly将项目中的各个资源发布到设置的指定文件中

猜你喜欢

转载自blog.csdn.net/moqianmoqian/article/details/111360045
今日推荐