Spring Application.java 包中的引导错误

Spring boot error in Application.java package

你好,我刚刚在 spring 启动初始化程序中创建了一个项目,但是当我在 sts 中导入该项目时,出现了一组我不理解的错误

package com.example.filter.influenceur.influenceur;

import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class InfluenceurApplication {


    public static void main(String[] args) {
        SpringApplication.run(InfluenceurApplication.class, args);

    }

}

错误是:

The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files

Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor

String cannot be resolved to a type

所有这些错误都在我Application.jave请帮助我

没有为项目设置 JRE 时会出现这些错误。查看 this link 以设置 JRE。