好好的项目,启动的时候突然就抛出一堆看不懂的错。后来发现是eclipse默认的是读取jdk下的jar包,把jar包路径改到jre下就行。
错误描述如下
Unable to acquire AES algorithm. This is required to function
org.springframework.beans.factory.BeanCreationException
Error creating bean with name 'com.you.ssh.test.dao.StudentDaoTest': Unsatisfied dependency expressed through field 'studentDao';
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.you.ssh.dao.StudentDao'
available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations
解决方法如下:
window-preferences-java-installed JREs-Edit-JRE home选择到jre文件夹下,原来选择的是jdk路径。
操作图如下: