Configuration des exemples

Nous allons décrire quelques exemples d’utilisation.

1. Configuration Maven pour la version 1.5 de Spring Boot

<parent>  
 <groupId>org.springframework.boot</groupId>  
 <artifactId>spring-boot-starter-parent</artifactId>  
 <version>1.5.22.RELEASE</version>  
</parent>  
<dependencies>  
 <dependency>  
 <groupId>org.springframework.boot</groupId>  
 <artifactId>spring-boot-starter-web</artifactId>  
 </dependency>  
</dependencies> 

2. Configuration Maven pour la version 2 de Spring Boot

<parent>  
 <groupId>org.springframework.boot</groupId>  
 <artifactId>spring-boot-starter-parent</artifactId>  
 <version>2.6.6.RELEASE</version>  
</parent>  
<dependencies>  
 <dependency>  
 <groupId>org.springframework.boot</groupId>  
 <artifactId>spring-boot-starter-web</artifactId>  
 </dependency>  
</dependencies>  
[...]  
 
<build>  
  <plugins>  
    <plugin>  
      <groupId>org.springframework.boot</groupId>  
      <artifactId>spring-boot-maven-plugin</artifactId>  
    </plugin>  ...
couv_EP4JASP.png

Découvrez 

le livre :

Aussi inclus dans nos :

Précédent
Introduction
Suivant
L’auto-configuration Spring Boot