好好的項目,啓動的時候突然就拋出一堆看不懂的錯。後來發現是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路徑。
操作圖如下: