idea导入项目后运行出现o.s.b.d.LoggingFailureAnalysisReporter报错,下面是我的application启动类
package com.qcl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableJpaAuditing
public class DianCanApplication {
public static void main(String[] args) {
SpringApplication.run(DianCanApplication.class, args);
}
}
运行后报错:
好像是springboot注入jpa接口的错误,我的启动类和其他包都是在一个目录下的,网上说的在@SpringBootApplication注解后面加上(exclude = {DataSourceAutoConfiguration.class})也试过了,都不行。
要怎么解决啊help!