Explication des noms:
BOM (Bill de matériaux): un bon moyen de résoudre les dépendances du package JAR.
Plateforme Spring IO
Origine: le printemps s'est initialement concentré sur le CIO et l'AOP, mais maintenant il s'est transformé en un énorme système. Par exemple, la sécurité, le MVC, etc. De cette manière, lorsque différents modules sont intégrés aux composants externes, le traitement de dépendance nécessite leurs numéros de version respectifs. Par exemple, l'intégration des ressorts plus récents et du quartz plus ancien rencontrera des problèmes, ce qui entraînera la construction et la mise à niveau des inconvénients. Par conséquent, la plate-forme Spring IO a vu le jour, tant qu'elle est introduite dans le projet, les dépendances ne nécessitent pas de numéro de version lors de l'intégration à l'extérieur. Le texte original du site officiel est le suivant: "Lorsque vous déclarez une dépendance à quelque chose qui fait partie de la plate-forme, vous pourrez désormais omettre le numéro de version."
Par exemple:
<Code Style = "Affichage: Block; Padding: 0px; Couleur: Hériter; Box-Sizing: Border-Box; Font-Family: 'Source Code Pro', Monospace; Font-Size: Undefined; White-Space: Pre; Border-Radius: 0px; Word-Wrap: Normal; Background: Transparent;"> <Span Style = "Color: Spank (Spank; Style = "Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136);"> Dépenses </span>> </span> <span style = "Color: RGB (0, 102, 102); Box-Size: Border-Box;"> << Span Style = "Box-Sizing: Border-Box; Color: RGB (0, 0, 136);"> Dépense </ Span> RGB (0, 102, 102); Border-Box; 102, 102); 40px; style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px; "> 4 </li> <li style =" Box-Size: Border-Box;
La plate-forme Spring IO n'est qu'un fichier POM qui enregistre les versions de Spring et d'autres projets open source. Le numéro de version est éliminé, donc le problème de la gestion des dépendances est éliminé, car il existe la configuration de version optimale dans la plate-forme Spring IO.
Bom lié au printemps
Bien sûr, afin de résoudre ces conflits de pot, Springsource a lancé diverses notes. Bien sûr, le plus célèbre est la plate-forme de printemps io bom, les trois principaux sont: le printemps-framework-bom, les dépendances de printemps et la plate-forme.
Pour les projets Spring, l'ajout du code de configuration suivant au fichier pom.xml peut éliminer le problème de la gestion des conflits de version.
<Code Style = "Affichage: Block; Padding: 0px; Couleur: Hériter; Box-Sizing: Border-Box; Font-Family: 'Source Code Pro', Monospace; Font-Size: Undefined; White-Space: Pre; Border-Radius: 0px; Word-Wrap: Normal; Background: Transparent;"> <Span Style = "Color: Spank (Spanche; Style = "Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136);"> Dependentmanagement </span> </span> <span style = "Color: RGB (0, 102, 102); Box-Sizing: Border-Box;"> << Span Style = "Box-Sizing: Border-Box; Color: Rgb (0, 0, 136);"> Dépense </ Span> RGB (0, 102, 102); 136); "> GroupId </span >> </span> org.springframework <Span Style =" Color: RGB (0, 102, 102); Boîte à bornes: Border-Box; "> </ <Span Style =" Box-Size: Border-Box; Border-Box; "> << Span Style =" Box-Size: Border-Box; 136); "> artifactive </ span >> </span> <span style =" Color: RGB (0, 102, 102); Border-Box; "> << Span Style =" Box-Sizing: Border-Box; 136); "> Version </span>> </span> <span style =" Color: RGB (0, 102, 102); Style = "Box-Sizing: Border-Box;"> </ span style = "Color: RGB (0, 102, 102); Box-Sizing: Border-Box;"> << Span Style = "Color: RGB (0, 102, 102); Box-Sizining: Border-Box;"> << Span Style = "Box-Sizing: Border-box;"> </ Span Size = "Box-Dizizon: Border-box;" Border-Box; "> </ span style =" Color: RGB (0, 102, 102); 102); Box-Sizing: Border-Box; "> << Span Style =" Box Style = "Box-Size: Border-Box; Couleur: RGB (0, 0, 136); "> Type </span>> </span> pom <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Type </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Type </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; color: rgb(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0. 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Scope </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Style =" Couleur: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Dependency </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> GroupId </span>> </span> org.springframework.boot <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> GroupId </span>> </span> org.springframework.boot <span style =" Color: RGB (0, 0, 136); "> GroupID </span>> </span> org.springframework.boot <span style =" Color: Rgb (0, 0, 136); "> <<pany style =" Box-Sice-; Couleur: RGB (0, 0, 136); "> GroupId </span>> </span> org.springframework.boot <span style =" Color: RGB (0, 0, 136); "> GroupID </span>> </span> org.springframework.boot <span style =" Color: Rgb (0, 0, 136); "> <<pany style =" Box-Sice-; Couleur: RGB (0, 0, 136); "> GroupId </span>> </span> org.springframework.boot <span style =" Color: RG 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Artefactive </span>> </span> Spring-Boot-Dependces <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Artefactive </span>> </span> Spring-Boot-Dependces <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Artefactive </span>> </span> Spring-Boot-Dependces <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Artefactive </span>> </span> Spring-Boot-Dependces <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Artefactive </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Version </span>> </span> 1.3.0.m2 <span style =" Color: RGB (0, 102, 102); Box-Sizing: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ Span Style =" Box-Sizing: border-box; "> </pany-sizing =" Box-Dizizon: Border-box; "" border-box; "> </ span style =" box-size: border-box; "> </ span style =" box-sizing: border-box; "> </ span style =" box-sizing: border-box; "> </ span style =" colore: rgb (0, 102, 102); Dimensionnement de la boîte: Border-Box; "> </ span style =" Color: RGB (0, 102, 102); Dimensionnement de la boîte: Border-Box; "> </ span style =" Color: RGB (0, 102, 102); Dimensionnement de la boîte: Border-Box; "> </ span style =" Color: RGB (0, 102, 102); Dimensionnement de la boîte: Border-Box; "> </ span style =" Color: RGB (0, 102, 102); Dimensionnement de la boîte: border-box; "> </ span style style =" Box-Dimensi: Border-box; Couleur: RGB (0, 0, 136); "> Version </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Type </span>> </span> pom <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ span style =" Box-Dimente: Border-Box; Couleur: RGB (0, 0, 136); "> Type </span>> </ span style =" Box-Size: Border-Box; Couleur: RGB (0, 0, 136); "> Type </span>> </ span style =" Box-Size: Border-Box; color: rgb(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136); "> Type </ Span >> </ Span> <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Scope </span>> </span> import <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ span style =" Box-Dimente: Border-Box; Couleur: RGB (0, 0, 136); "> Scope </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ span style =" Box-Dimente: Border-Box; Couleur: RGB (0, 0, 136); "> Scope </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> dépendant </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> dépendant </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> dépendant </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> GroupId </span>> </span> io.spring.platform <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ span style =" Box-Dimente: Border-Box; Couleur: RGB (0, 0, 136); "> GroupId </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ Span Style =" Box-Sizing: border-box; "> </pany-sizing =" Box-Sizing: Border-box; " Border-Box; "> </ span style =" Color: RGB (0, 102, 102); Dimensionnement de la boîte: Border-Box; "> </ span style =" Color: RGB (0, 102, 102); Box-Dize: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Sizing: Border-Box; "> </ span style =" Box-Size Border-Box; "> </ span style =" Font-Sizing: Border-Box; "> </ span style =" Font-Sizing: Border-Box; "> </ span style =" Font-Sizing: Border-Box; "> <style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> ArtefactId </span>> </span> plate-forme-bom <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Artefactive </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ span style =" Box-Dimente: Border-Box; Couleur: RGB (0, 0, 136); "> Version </span>> </span> 1.1.3.release <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Version </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Version </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 0, 136); "> Type </span>> </span> pom <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Type </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Scope </span>> </span> import <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> << Span Style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Scope </span>> </span> import <Span Style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> Scope </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> dépendant </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> dépendant </span>> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> TEPPENS </span >> </span> <span style =" Color: RGB (0, 102, 102); Box-Size: Border-Box; "> </ <span style =" Box-Sizing: Border-Box; Couleur: RGB (0, 0, 136); "> DependentMandation </span >> </span> </code> <ul style =" Box-Sizing: Border-Box; Position: absolue; Largeur: 50px; En haut: 0px; gauche: 0px; marge: 0px; rembourrage: 6px 0px 40px; largeur de droite: 1px; Style à droite de la frontière: solide; Border-Right-Color: RVB (221, 221, 221); Style de liste: aucun; Texte-aligne: à droite; Color d'arrière-plan: RGB (238, 238, 238); "> <li style =" Box-Size: Border-Box; rembourrage: 0px 5px; "> 1 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 2 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 3 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 4 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 5 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 6 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 7 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 7 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 7 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 7 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 8 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 9 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 10 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 11 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 12 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 13 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 14 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 15 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 16 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 17 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 18 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 18 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 19 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 20 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 21 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 22 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 23 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 24 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 24 </li> <li style =" Box-Sizing: Border-box; rembourrage: 0px 5px; "> 25 </li> </ul>
Article de référence
Introduction à la plate-forme Spring IO
Résumer
Ce qui précède est l'intégralité du contenu de cet article sur une brève discussion sur la solution de Spring aux dépendances BOM des packages JAR. J'espère que ce sera utile à tout le monde. Les amis intéressés peuvent continuer à se référer à d'autres sujets connexes sur ce site. S'il y a des lacunes, veuillez laisser un message pour le signaler. Merci vos amis pour votre soutien pour ce site!