IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Spring Java Discussion :

Problème génération nouveau projet


Sujet :

Spring Java

  1. #1
    Membre émérite

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2013
    Messages
    1 103
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 103
    Points : 2 645
    Points
    2 645
    Par défaut Problème génération nouveau projet
    Bonjour,

    J'ai généré un nouveau projet Spring avec Eclipse et Spring Initialiser, car je voulais passer un projet de Java à 8 à 11, et ainsi mettre à jour mes références dans mon pom.

    Après j'ai recopier mes packages et mon 'application .properties" et mes ressources.

    J'ai juste ajouté une dépendance dans mon pom à la main sur un autre projet qui , qui contient les objets métiers.

    Mais il ne veut pas builder, j'obtiens ça.

    [quote]
    [quote]

    Avec maven install

    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/P:/eclipse-Jee-2021-06/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.18.0.20210618-2246/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [file:/P:/eclipse-Jee-2021-06/configuration/org.eclipse.osgi/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
    SLF4J: Class path contains multiple SLF4J bindings.
    SLF4J: Found binding in [jar:file:/P:/eclipse-Jee-2021-06/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.18.0.20210618-2246/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: Found binding in [file:/P:/eclipse-Jee-2021-06/configuration/org.eclipse.osgi/6/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
    SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
    SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------< fr.xcomptacompta-springboot-j11-springboot >------------
    [INFO] Building xcompta-springboot 0.0.1-SNAPSHOT
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO]
    [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ xcompta-springboot-j11-springboot ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Using 'UTF-8' encoding to copy filtered properties files.
    [INFO] Copying 1 resource
    [INFO] Copying 20 resources
    [INFO]
    [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ xcompta-springboot-j11-springboot ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO]
    [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ xcompta-springboot-j11-springboot ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Using 'UTF-8' encoding to copy filtered properties files.
    [INFO] skip non existing resourceDirectory P:\workspaces\xCompta\xcompta-springboot-j11\src\test\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ xcompta-springboot-j11-springboot ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO]
    [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ xcompta-springboot-j11-springboot ---
    [INFO]
    [INFO] -------------------------------------------------------
    [INFO] T E S T S
    [INFO] -------------------------------------------------------
    [INFO] Running com.example.demo.XcomptaSpringbootApplicationTests
    13:51:21.497 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
    13:51:21.505 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
    13:51:21.539 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.example.demo.XcomptaSpringbootApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
    13:51:21.549 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.example.demo.XcomptaSpringbootApplicationTests], using SpringBootContextLoader
    13:51:21.553 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.demo.XcomptaSpringbootApplicationTests]: class path resource [com/example/demo/XcomptaSpringbootApplicationTests-context.xml] does not exist
    13:51:21.554 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.demo.XcomptaSpringbootApplicationTests]: class path resource [com/example/demo/XcomptaSpringbootApplicationTestsContext.groovy] does not exist
    13:51:21.555 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.example.demo.XcomptaSpringbootApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
    13:51:21.556 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.example.demo.XcomptaSpringbootApplicationTests]: XcomptaSpringbootApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
    13:51:21.607 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.example.demo.XcomptaSpringbootApplicationTests]
    13:51:21.671 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [P:\workspaces\xCompta\xcompta-springboot-j11\target\classes\com\example\demo\XcomptaSpringbootApplication.class]
    13:51:21.672 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.example.demo.XcomptaSpringbootApplication for test class com.example.demo.XcomptaSpringbootApplicationTests
    13:51:21.799 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.example.demo.XcomptaSpringbootApplicationTests]: using defaults.
    13:51:21.799 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
    13:51:21.818 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2374d36a, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@54d18072, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@1506f20f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@47a5b70d, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@424fd310, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1a45193b, org.springframework.test.context.transaction.TransactionalTestExecutionListener@38f116f6, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5286c33a, org.springframework.test.context.event.EventPublishingTestExecutionListener@6e6d5d29, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@5c530d1e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@6c25e6c4, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@85e6769, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@c5ee75e, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@48a12036, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@bf1ec20]
    13:51:21.823 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@2eced48b testClass = XcomptaSpringbootApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@47c4ecdc testClass = XcomptaSpringbootApplicationTests, locations = '{}', classes = '{class com.example.demo.XcomptaSpringbootApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@39b43d60, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@72ef8d15, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@6ea2bc93, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@5f77d0f9, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@420a85c4, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@1dde4cb2], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].
    13:51:21.891 [main] DEBUG org.springframework.boot.ApplicationServletEnvironment - Activating profiles []
    13:51:21.895 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}

    . ____ _ __ _ _
    /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
    ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
    \\/ ___)| |_)| | | | | || (_| | ) ) ) )
    ' |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    :: Spring Boot :: (v2.5.7)

    2021-11-26 13:51:22.182 INFO 8356 --- [ main] c.e.d.XcomptaSpringbootApplicationTests : Starting XcomptaSpringbootApplicationTests using Java 16.0.1 on DESKTOP-82FR04F with PID 8356 (started by Fabrice in P:\workspaces\xCompta\xcompta-springboot-j11)
    2021-11-26 13:51:22.184 INFO 8356 --- [ main] c.e.d.XcomptaSpringbootApplicationTests : No active profile set, falling back to default profiles: default
    2021-11-26 13:51:22.998 INFO 8356 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
    2021-11-26 13:51:23.013 INFO 8356 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 5 ms. Found 0 JPA repository interfaces.
    Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
    2021-11-26 13:51:23.634 INFO 8356 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
    2021-11-26 13:51:23.722 INFO 8356 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.32.Final
    2021-11-26 13:51:23.870 INFO 8356 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
    2021-11-26 13:51:24.077 INFO 8356 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
    2021-11-26 13:51:24.084 WARN 8356 --- [ main] com.zaxxer.hikari.util.DriverDataSource : Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
    2021-11-26 13:51:24.274 INFO 8356 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
    2021-11-26 13:51:24.287 INFO 8356 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
    2021-11-26 13:51:24.593 INFO 8356 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
    2021-11-26 13:51:24.602 INFO 8356 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
    2021-11-26 13:51:24.907 WARN 8356 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
    2021-11-26 13:51:25.280 INFO 8356 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
    2021-11-26 13:51:25.624 INFO 8356 --- [ main] c.e.d.XcomptaSpringbootApplicationTests : Started XcomptaSpringbootApplicationTests in 3.727 seconds (JVM running for 4.868)
    [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.55 s - in com.example.demo.XcomptaSpringbootApplicationTests
    2021-11-26 13:51:26.022 INFO 8356 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
    2021-11-26 13:51:26.029 INFO 8356 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
    2021-11-26 13:51:26.044 INFO 8356 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
    [INFO]
    [INFO] Results:
    [INFO]
    [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
    [INFO]
    [INFO]
    [INFO] --- asciidoctor-maven-plugin:1.5.8:process-asciidoc (generate-docs) @ xcompta-springboot-j11-springboot ---
    [INFO] sourceDirectory P:\workspaces\xCompta\xcompta-springboot-j11\src\main\asciidoc does not exist. Skip processing
    [INFO]
    [INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ xcompta-springboot-j11-springboot ---
    [INFO]
    [INFO] --- spring-boot-maven-plugin:2.5.7:repackage (repackage) @ xcompta-springboot-j11-springboot ---
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 9.881 s
    [INFO] Finished at: 2021-11-26T13:51:27+01:00
    [INFO] ------------------------------------------------------------------------
    [WARNING] The requested profile "pom.xml" could not be activated because it does not exist.
    [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.7:repackage (repackage) on project xcompta-springboot-j11-springboot: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.5.7:repackage failed: Unable to find main class -> [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/d...utionException
    ET à l'excution
    13:53:00.038 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@28452bcd

    . ____ _ __ _ _
    /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
    ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
    \\/ ___)| |_)| | | | | || (_| | ) ) ) )
    ' |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    :: Spring Boot :: (v2.5.7)

    2021-11-26 13:53:00.883 ERROR 12504 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :

    ***************************
    APPLICATION FAILED TO START
    ***************************

    Description:

    An attempt was made to call a method that does not exist. The attempt was made from the following location:

    org.springframework.boot.SpringApplication.run(SpringApplication.java:336)

    The following method did not exist:

    'void org.springframework.context.ConfigurableApplicationContext.setApplicationStartup(org.springframework.core.metrics.ApplicationStartup)'

    The method's class, org.springframework.context.ConfigurableApplicationContext, is available from the following locations:

    jar:file:/D:/Utilisateurs/Fabrice/.m2/repository/org/springframework/spring-context/5.2.0.M3/spring-context-5.2.0.M3.jar!/org/springframework/context/ConfigurableApplicationContext.class
    jar:file:/D:/Utilisateurs/Fabrice/.m2/repository/org/springframework/spring-context/5.3.13/spring-context-5.3.13.jar!/org/springframework/context/ConfigurableApplicationContext.class

    The class hierarchy was loaded from the following locations:

    org.springframework.context.ConfigurableApplicationContext: file:/D:/Utilisateurs/Fabrice/.m2/repository/org/springframework/spring-context/5.2.0.M3/spring-context-5.2.0.M3.jar


    Action:

    Correct the classpath of your application so that it contains a single, compatible version of org.springframework.context.ConfigurableApplicationContext
    Est-ce que j'ai touché un truc que je nr"aurai pas du ?
    Ou j'ai écrasé un fichier de congiguration en rcopiant mes fichiers ?

    Je pensais que se serai trivial de mettre à jour en générant un projet vide avec spring initialiser et en recopiant mes ressources

    Cordialement

  2. #2
    Membre chevronné Avatar de Mister Nono
    Homme Profil pro
    Ingénieur Mathématiques et Informatique
    Inscrit en
    Septembre 2002
    Messages
    2 232
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 60
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Mathématiques et Informatique
    Secteur : Santé

    Informations forums :
    Inscription : Septembre 2002
    Messages : 2 232
    Points : 1 897
    Points
    1 897
    Par défaut
    Hello,

    Dans le pom de ton projet cloné, tu renseignes la propriété suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <properties>
    <java.version>xxxx</java.version>
    </properties>
    Et ensuite tu build ton projet.

    Cela devrait être pas mal pour démarrer correctement.

    A+

  3. #3
    Membre émérite

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2013
    Messages
    1 103
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 103
    Points : 2 645
    Points
    2 645
    Par défaut
    Citation Envoyé par Mister Nono Voir le message
    Hello,

    Dans le pom de ton projet cloné, tu renseignes la propriété suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <properties>
    <java.version>xxxx</java.version>
    </properties>
    Et ensuite tu build ton projet.

    Cela devrait être pas mal pour démarrer correctement.

    A+
    J4ai ajouter compiler et source

    Voici ma section properties
    <properties>
    <java.version>11</java.version>
    <maven.compiler.source>11</maven.compiler.source>
    <maven.compiler.target>11</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    Mais je me fais jetter quand même

    17:29:11.797 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@2184868a

    . ____ _ __ _ _
    /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
    ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
    \\/ ___)| |_)| | | | | || (_| | ) ) ) )
    ' |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    :: Spring Boot :: (v2.5.7)

    2021-11-28 17:29:12.468 ERROR 5568 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :

    ***************************
    APPLICATION FAILED TO START
    ***************************

    Description:

    An attempt was made to call a method that does not exist. The attempt was made from the following location:

    org.springframework.boot.SpringApplication.run(SpringApplication.java:336)

    The following method did not exist:

    'void org.springframework.context.ConfigurableApplicationContext.setApplicationStartup(org.springframework.core.metrics.ApplicationStartup)'

    The method's class, org.springframework.context.ConfigurableApplicationContext, is available from the following locations:

    jar:file:/D:/Utilisateurs/Fabrice/.m2/repository/org/springframework/spring-context/5.2.0.M3/spring-context-5.2.0.M3.jar!/org/springframework/context/ConfigurableApplicationContext.class
    jar:file:/D:/Utilisateurs/Fabrice/.m2/repository/org/springframework/spring-context/5.3.13/spring-context-5.3.13.jar!/org/springframework/context/ConfigurableApplicationContext.class

    The class hierarchy was loaded from the following locations:

    org.springframework.context.ConfigurableApplicationContext: file:/D:/Utilisateurs/Fabrice/.m2/repository/org/springframework/spring-context/5.2.0.M3/spring-context-5.2.0.M3.jar


    Action:

    Correct the classpath of your application so that it contains a single, compatible version of org.springframework.context.ConfigurableApplicationContext

  4. #4
    Membre émérite

    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2013
    Messages
    1 103
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Conseil

    Informations forums :
    Inscription : Octobre 2013
    Messages : 1 103
    Points : 2 645
    Points
    2 645
    Par défaut
    C'est bon, mon Eclipse ne pointait pas sur le JDK installé.
    Et Maven n'aime pas ça.

    J'ai installé une nouvelle version d'Eclipse
    Et j'ai oublier de tout remettre

    Désolé pour le dérangement

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Problème installation nouveau projet Zend 2
    Par clairetj dans le forum Zend Framework
    Réponses: 0
    Dernier message: 17/03/2016, 08h36
  2. Problème définition nouveau projet GTK
    Par Clopinet85 dans le forum GTK+ avec C & C++
    Réponses: 16
    Dernier message: 06/05/2013, 17h26
  3. Réponses: 4
    Dernier message: 03/06/2008, 11h40
  4. [Problème] Création d'un nouveau projet
    Par samoth93 dans le forum Visual Studio
    Réponses: 4
    Dernier message: 15/03/2008, 15h00

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo