Ich gehe davon aus, dass die Abhängigkeiten nicht erkannt werden, da sie in IntelliJ in Rot angezeigt werden
Code: Select all
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.BufferingClientHttpRequestFactory;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.MultipartBodyBuilder;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
import com.fasterxml.jackson.databind.ObjectMapper;
- Ich habe das Maven-Projekt von Git in mein lokales Dateisystem importiert und das Projekt in IntelliJ IDEA 2024.1.2 geöffnet
- Ich habe Maven sauber ausgeführt, mit Erfolg. (Alle Abhängigkeiten wurden erfolgreich vom Maven Nexus Repository Manager heruntergeladen und ich habe am Ende die Meldung BUILD SUCCESS erhalten.)
- Ich habe Maven Install mit Erfolg ausgeführt. (Alle Abhängigkeiten wurden erfolgreich beim Maven Nexus Repository Manager heruntergeladen und ich habe am Ende den BUILD SUCCESS erhalten)
- Nach Maven Clean und Maven Install habe ich das Projekt erfolgreich neu geladen.
- Ich habe eine Maven Run-Konfiguration für die Ausführung des Projekts erstellt
- Beim Ausführen der erstellten Maven Run-Konfiguration erhalte ich viele Fehler Ich führe es tatsächlich so aus:
Code: Select all
package com.fasterxml.jackson.databind does not exist
package org.springframework.boot does not exist
package org.springframework.boot does not exist
package org.springframework.boot.autoconfigure does not exist
package org.springframework.http.client does not exist
package org.springframework.http.client does not exist
package org.springframework.http.client does not exist
package org.springframework.web.client does not exist
cannot find symbol class CommandLineRunner
cannot find symbol class SpringBootApplication
cannot find symbol class RestTemplate
cannot find symbol class HttpHeaders
cannot find symbol class RestTemplate
package org.springframework.http does not exist
Code: Select all
org.apache.commons
commons-csv
1.5
org.springframework.boot
spring-boot-starter-jdbc
Eine weitere Sache, die ich mitgeteilt habe und die Es scheint sehr seltsam, dass es beim Erstellen einer Ausführungskonfiguration keinen Abschnitt von Spring Boot unter dem Abschnitt mit den Ausführungsoptionen gibt. Es sollte so aussehen:
Geben Sie hier die Bildbeschreibung ein
Aber in meiner IDEE fehlt der Abschnitt mit den Spring-Boot-Optionen. Es scheint, dass die Anwendung nicht als Spring-Boot-Anwendung erkannt wird.
Was ich bisher versucht habe, um das Problem zu lösen:
< ul>
[*]Maven ausführen. Generieren Sie Quellen und Update-Ordner für alle Projekte.
[*]Maven Reload Project ausführen.
[*]Caches mit der Funktion „Invalidieren“ neu laden Caches-Abschnitt in IntelliJ IDEA