Hello everyone, problem with IDE. For some reason, the folders began to be located in some strange way, in the sense of the resource folder, it automatically began to try to become the root folder. It all started as soon as I corrected something in the gradle file, but now it has started to spread when opening other projects. The mark as action helps, but with any rebuild everything becomes as before. And still can not find and load the main class, although the method main is clearly worth it and the class is specified in the configuration. I do not understand what's the matter, please help. Gradle

buildscript { ext { springBootVersion = '2.0.2.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' group = 'tech.viacom' version = '0.0.1-SNAPSHOT' sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } } ext { springCloudVersion = 'Finchley.BUILD-SNAPSHOT' } dependencies { compile('org.springframework.cloud:spring-cloud-config-server') compileOnly('org.projectlombok:lombok') testCompile('org.springframework.boot:spring-boot-starter-test') } dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" } } 

Mainclass

 @SpringBootApplication public class ConfigserviceApplication { public static void main(String[] args) { SpringApplication.run(ConfigserviceApplication.class, args); } } 
  • And yet, there is no longer a blue square on the main folder, but before that there was both a java & resource folder and both blue and, accordingly, application properties are not located, the Application Context is not loaded ((( - Mircella
  • Tried to change the folder display mode in the project? In the settings tried to reset everything by default and see what has changed? - titov_andrei
  • In a pinch, you can try the good old reinstallation of the idea. In general, you can attach a screenshot of the problem, I do not quite imagine it. - KeyJibo
  • Try converting your project to maven, as I do in this answer. - Roman C
  • @KeyJibo and how to attach screenshots here? Sorry for the question - I rarely come here - Mircella

0