问题:

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.XXX.util.spring.EncryptPropertyPlaceholderConfigurer] for bean with name 'propertyConfigurer' defined in URL .................


这个主要问题是,jdk没有编译出class文件造成的(可以D:\apache-tomcat-7.0.61\webapps\xxx(项目名字)\WEB-INF\classes下查看是否有class文件出现,如果没有就是这个原因,可以继续看下面方法,如果不是就不需要往下看了)。



1、查看jre是否是你安装jdk时的jre,如果不是改成如图

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.XXX.util.spri


2、查看你的tomcat用的jre是否是安装jdk时的jre.如果不是改成如图

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.XXX.util.spri



最重启tomcat 。

成功!


相关文章:

  • 2021-10-30
  • 2021-08-18
  • 2021-07-28
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-06-13
  • 2021-10-27
  • 2021-07-14
相关资源
相似解决方案