framework-web:spring:td2

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
framework-web:spring:td2 [2019/02/07 17:12] jcheronframework-web:spring:td2 [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1
Ligne 16: Ligne 16:
  
 Configurer le projet dans **application.properties**, pour que le contextPath soit **/**, configurer Mustache, H2 Configurer le projet dans **application.properties**, pour que le contextPath soit **/**, configurer Mustache, H2
 +
 +<sxh;gutter:false>
 +spring.datasource.url=jdbc:h2:file:./data/messagerie;DB_CLOSE_ON_EXIT=FALSE
 +spring.datasource.username=sa
 +spring.datasource.password=
 +spring.datasource.driverClassName=org.h2.Driver
 +spring.jpa.hibernate.ddl-auto=update
 +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
 + 
 +spring.h2.console.enabled=true
 +spring.h2.console.path=/h2-console
 +
 +server.servlet.context-path=/
 +
 +# Mustache Template engine
 +spring.mustache.prefix=classpath:/templates/
 +spring.mustache.suffix=.html
 +</sxh>
  
 Ajouter webJars à pom.xml pour intégrer Semantic-UI : Ajouter webJars à pom.xml pour intégrer Semantic-UI :
-<sxh xml>+<sxh xml;gutter:false>
 <!-- https://mvnrepository.com/artifact/org.webjars/Semantic-UI --> <!-- https://mvnrepository.com/artifact/org.webjars/Semantic-UI -->
 <dependency> <dependency>
Ligne 28: Ligne 46:
  
 Ajouter la dépendance pour jQuery (indispensable avec Semantic) Ajouter la dépendance pour jQuery (indispensable avec Semantic)
-<sxh xml>+<sxh xml;gutter:false>
 <dependency> <dependency>
     <groupId>org.webjars</groupId>     <groupId>org.webjars</groupId>
Ligne 74: Ligne 92:
 </sxh> </sxh>
  
 +===== Création des Entities =====
 +
 +Créer les classes métier correspondant au diagramme de classes suivant dans **s4.spring.td2.entities** :
 +  * penser à ajouter les relations :
 +    * oneToMany
 +    * manyToOne
 +    * manyToMany
 +
 +
 +{{:framework-web:spring:classdiagram.png|}}
 +
 +===== Création des Repositories =====
 +
 +Créer les repositories correspondant à chacune des classes dans **s4.spring.td2.repositories**.
 +
 +===== Création des routes =====
 +
 +==== /orgas/(index)? ====
 +
 +{{:framework-web:spring:orgas-lnk.png?800|}}
 +
 +==== /orgas/new ====
 +
 +{{:framework-web:spring:oragas-frm.png?800|}}
 +
 +==== /orgas/edit/{id} ====
 +
 +{{:framework-web:spring:oragas-frm-id.png?800|}}
 +==== /orgas/delete/{id} ====
 +Confirmation avant la suppression d'une organisation :
 +
 +{{:framework-web:spring:orga-delete.png?800|}}
 +
 +==== /orgas/display/{id} ====
 +
 +{{:framework-web:spring:orgas-display-id-lnk.png?800|}}
 +
 +==== /orgas/search/ ====
 +Recherche une organisation en fonction de la valeur contenue de l'un de ses champs visibles, puis redirige vers **/orgas/**
 +
 +==== /orgas/details/{id} ====
 +
 +
 +{{:framework-web:spring:orgas-details.png?800|}}
  
  • framework-web/spring/td2.1549555925.txt.gz
  • Dernière modification : il y a 6 ans
  • (modification externe)