Below is my build.gradle file
plugins {
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'java'
}
group = 'jwt.demo'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
flatDir {
dirs 'C://Users//David//.gradle//caches//modules-2//files-2.1'
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter:2.3.4.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-web:2.3.4.RELEASE'
}
test {
useJUnitPlatform()
}
When i click on build and assemble icon of the Gradle panel on the intelliji, it shows "BUILD SUCCESFUL" But when i add spring boot annotation @SpringBoot, it shows error " cannot resolve symbol SpringbootApplication". It seems it was not compiled succesfully. Any ideas how to fix it ?