Cristhian Franco
PreguntaEstoy teniendo este error a la hora de compilar, ya intente cambiar las dependencias pero nada:
[INFO] --- spring-boot-maven-plugin:2.2.4.RELEASE:run (default-cli) @ es-reservation --- [INFO] Attaching agents: [] Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationAwareOrderComparator.sort(Ljava/util/List;)V at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:428) at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:420) at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:272) at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:253) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) at com.platzi.esreservation.EsReservationApplication.main(EsReservationApplication.java:10) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.429 s [INFO] Finished at: 2020-02-06T20:17:14-06:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.4.RELEASE:run (default-cli) on project es-reservation: Application finished with exit code: 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
-
El primero era en cuanto al mapeo de las clases a la base de datos, no se si sea por convenio o no, pero tenia los campos solamente como id en las calses y al parecer esto genero un conflicto.
-
Segundo fue que spring corre en el puerto 8080 por defecto y algo mas en mi computadora lo estaba usando.
-
Tercero y ultimo, tenia mal identado unas cosas en el archivo .yalm.
Cristhian Franco
Logre arreglar el error, bueno habia mas de uno:
Mateo Villanueva
Holaa, pudiste solucinarlo?
Mateo Villanueva
Recién veo que si jaja. en mi 8080 está docker :c y que tenías mal identado en el .yaml?
