我将Spring Boot应用程序从1.3.4更新到1.4.3,并使用Gradle Refresh刷新了项目。我现在在主应用程序类中出错:
无法解析java.lang.Object类型。这是间接的 从必需的.class引用 文件
BeverageDataServicesApplication.java / BeverageDataServices / src / main / java / com / boelter / beverage
这是主要的应用程序类:
package com.xxx.beverage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication (exclude = {DataSourceAutoConfiguration.class, MailSenderAutoConfiguration.class})
@ComponentScan(basePackages = "com.xxx.xxx")
@EntityScan("com.xxx.xxx.model")
@EnableScheduling
public class BeverageDataServicesApplication {
public static void main(String[] args) {
SpringApplication.run(BeverageDataServicesApplication.class, args);
}
}
答案 0 :(得分:0)
看起来JRE已被删除或不存在于Java Build Path中...感谢您的快速洞察!!我将Java 8 JRE添加到Build Path中,它可以工作......谢谢