2-7验证Dao错误
来源:2-7 验证Dao
慕村3357761
2020-02-28
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.mywork.o2o.util.EncryptPropertyPlaceholderConfigurer] for bean with name ‘com.mywork.o2o.util.EncryptPropertyPlaceholderConfigurer#0’ defined in class path resource [spring/spring-dao.xml]; nested exception is java.lang.ClassNotFoundException: com.mywork.o2o.util.EncryptPropertyPlaceholderConfigurer
写回答
1回答
-
同学好,在没有解决相关问题的能力之前,不建议直接复制粘贴最终源码里面的配置,而还是用现阶段没有完善的代码,否则解决了这个问题,还会遇到各种各样难以解决的莫名其妙的问题。这里主要是你用了最终配置,但是代码里面此时还没有实现加密的类,所以会报错
112020-02-29
相似问题