简体   繁体   中英

Spring boot error in Application.java package

hello I just created a project in spring boot initializer but when I import the project in sts I have a set of errors that I do not understand

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 errors are :

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

All this error is in my Application.jave please help me

These error occurs when JRE is not set for the project. Have a look at this link to set JRE.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM