欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.

程序员文章站 2022-07-01 17:06:01
...

 

错误:

 

Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration due to org/springframework/jdbc/core/ConnectionCallback not found. Make sure 

 

 

原因:

 

   springboot启动类  文件不能直接放在main/java文件夹下,必须要建一个包把他放进去

 

 解决方案: 把springboot启动放入一个新建的包最外层,其他代码放入这个包内的其他包即可!

 

 如:

 

  
Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.
            
    
    博客分类: SpringBoot springbootCaused by: java.lang.IllegalStateException 
 

 

 

  • Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.
            
    
    博客分类: SpringBoot springbootCaused by: java.lang.IllegalStateException 
  • 大小: 17.6 KB