Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import du projet est impossible dans une version récente d'IntelliJ (2019.1.3 par exemple) #21

Open
hervep530 opened this issue Nov 7, 2019 · 0 comments

Comments

@hervep530
Copy link

hervep530 commented Nov 7, 2019

Solution :

  1. Dans le pom.xml modifier la version de spring-boot-starter-parent (la 2.2.0.RELEASE fonctionne pour moi). Modifier également la dépendance de spring-boot-starter-test ainsi 👍

     <dependency>
     	<groupId>org.springframework.boot</groupId>
     	<artifactId>spring-boot-starter-test</artifactId>
     	<scope>test</scope>
     	<exclusions>
     		<exclusion>
     			<groupId>org.junit.vintage</groupId>
     			<artifactId>junit-vintage-engine</artifactId>
     		</exclusion>
     	</exclusions>
     </dependency>
    
  2. Dans ProductController.java, remplacer "productDao.delete(id);" par "productDao.deleteById(id);"

  3. Modifier la classe de test comme suit :

@SpringBootTest
public class MicrocommerceApplicationTests {

@Test
public void contextLoads() {
}

... et modifier les imports (supprimer ceux qui sont obsolètes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant