springBoot2啓動報錯 Unable to acquire AES algorithm. This is required to function

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

操作圖如下:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章