Application eCOM - Spring Boot
API REST Utilisation de Spring Boot pour application ECOM
Dépendances de démarrage de démarrage de printemps
- org.springframework.boot: printemps-boot-starter-web - starter for Building web, y compris Restful, applications utilisant le printemps.
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web - org.springframework.boot: printemps-boot-starter-data-jpa - starter pour utiliser spring data jpa avec hibernate
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa - org.springframework.boot: printemps-boot-starter-validation - starter pour l'utilisation de la validation de Java Bean avec un validateur hibernate
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation - org.springframework.boot: spring-boot-starter-test - starter pour tester les applications de démarrage de printemps avec des bibliothèques, notamment Junit Jupiter, Hamcrest et Mockito
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
Autres dépendances
- MySQL: MySQL-Connector-Java - Pilote JDBC pour MySQL
https://mvnrepository.com/artifact/mysql/mysql-connector-java - org.projectlombok: Lombok - Gestion automatique des ressources, génération automatique de getters, setters, égaux, code de hash et tostring, et plus
https://mvnrepository.com/artifact/org.projectlombok/lombok - org.mapstruct: Mapstruct Un processeur d'annotation pour générer des mappeurs de bean-saafe https://mvnrepository.com/artifact/org.mapstruct/mapstruct
- IO.SpringFox: Springfox-Swagger2 - Documentation de l'API JSON pour les applications basées sur le printemps https://mvnrepository.com/artifact/io.springfox/springfox-swagger2
- IO.SpringFox: Springfox-Swagger-Ui - JSON API Documentation pour les applications basées sur le printemps https://mvnrepository.com/artifact/io.springfox/springfox-swagger-uii
Configuration de Swagger
- Ajout de la dépèance Spring Fox Swagger2 et Swagger UI
- Activer la fanfaronnade en code avec @ activewagger2 Annotation
- Configuration de Swagger en créant une classe de dos de dossier