Bonjour tout le monde
Je suis nouveau à Spring.
Actuellement je suis entrain de lire un tuto dans lequel il faut afficher les informations enregistrées dans une table "utilisateur" d'une base de données mysql.
Je crois avoir respecté toutes les consignes.
Aucune erreur ne s'affiche dans la console, mais les informations qui sont dans la table ne s'affichent pas. Merci de m'aider à détecter ce qui ne marche pas.
Ci-dessous les codes de mes différentes composantes.
web.xml
spring-servlet.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <display-name>Archetype Created Web Application</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring-servlet.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> </web-app>
Utilisateur.java
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <context:component-scan base-package="com"/> <context:property-placeholder location="classpath:application.properties" /> <mvc:annotation-driven/> <mvc:resources location="/ressources/" mapping="/resources/**"/> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/vues/"/> <property name="suffix" value=".jsp"/> </bean> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="${database.driver}"/> <property name="url" value="${database.url}"/> <property name="username" value="${database.username}"/> <property name="password" value="${database.password}"/> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">${hibernate.dialect}</prop> <prop key="hibernate.show_sql">${hibernate.show_sql}</prop> <prop key="hibernate.show_format">${hibernate.show_format}</prop> <prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop> </props> </property> <property name="packagesToScan" value="com.model"/> </bean> <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <tx:annotation-driven transaction-manager="transactionManager"/> </beans>
UtilisateurDao.java
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 package com.model; import java.io.Serializable; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="utilisateur") public class Utilisateur implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(name="idutilisateur") private Long idUtilisateur; @Column(name="emailutilisateur") private String emailUtilisateur; @Column(name="motpasseutilisateur") private String motPasseUtilisateur; @Column(name="nomutilisateur") private String nomUtilisateur; @Column(name="dateinscriptionutilisateur") private Timestamp dateInscriptionUtilisateur; public Long getIdUtilisateur() { return idUtilisateur; } public void setIdUtilisateur(Long idUtilisateur) { this.idUtilisateur = idUtilisateur; } public String getEmailUtilisateur() { return emailUtilisateur; } public void setEmailUtilisateur(String emailUtilisateur) { this.emailUtilisateur = emailUtilisateur; } public String getMotPasseUtilisateur() { return motPasseUtilisateur; } public void setMotPasseUtilisateur(String motPasseUtilisateur) { this.motPasseUtilisateur = motPasseUtilisateur; } public String getNomUtilisateur() { return nomUtilisateur; } public void setNomUtilisateur(String nomUtilisateur) { this.nomUtilisateur = nomUtilisateur; } public Timestamp getDateInscriptionUtilisateur() { return dateInscriptionUtilisateur; } public void setDateInscriptionUtilisateur(Timestamp dateInscriptionUtilisateur) { this.dateInscriptionUtilisateur = dateInscriptionUtilisateur; } @Override public String toString() { return "Utilisateur [idUtilisateur=" + idUtilisateur + ", emailUtilisateur=" + emailUtilisateur + ", motPasseUtilisateur=" + motPasseUtilisateur + ", nomUtilisateur=" + nomUtilisateur + ", dateInscriptionUtilisateur=" + dateInscriptionUtilisateur + "]"; } }
UtilisateurDaoImpl.java
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package com.dao; import java.util.List; import com.model.Utilisateur; public interface UtilisateurDao { public void addUtilisateur(Utilisateur utilisateur); public List<Utilisateur> getAllUtilisateur(); public Utilisateur getUtilisateurById(Long idUtilisateur); public Utilisateur updateutilisateur(Utilisateur utilisateur); public void deleteUtilisateur(Long idUtilisateur); }
UtilisateurService.java
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 package com.dao; import java.util.List; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import com.model.Utilisateur; @Repository public class UtilisateurDaoImpl implements UtilisateurDao { @Autowired private SessionFactory sessionFactory; public void addUtilisateur(Utilisateur utilisateur) { sessionFactory.getCurrentSession().saveOrUpdate(utilisateur); } @SuppressWarnings("unchecked") public List<Utilisateur> getAllUtilisateur() { return sessionFactory.getCurrentSession().createQuery("from Utilisateur").list(); } public Utilisateur getUtilisateurById(Long idUtilisateur) { Utilisateur utilisateur = (Utilisateur)sessionFactory.getCurrentSession().load(Utilisateur.class, idUtilisateur); return utilisateur; } public Utilisateur updateutilisateur(Utilisateur utilisateur) { sessionFactory.getCurrentSession().update(utilisateur); return utilisateur; } public void deleteUtilisateur(Long idUtilisateur) { Utilisateur utilisateur = (Utilisateur)sessionFactory.getCurrentSession().load(Utilisateur.class, idUtilisateur); if(utilisateur != null){ this.sessionFactory.getCurrentSession().delete(utilisateur); } } }
UtilisateurServiceImpl.java
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package com.service; import java.util.List; import com.model.Utilisateur; public interface UtilisateurService { public void addUtilisateur(Utilisateur utilisateur); public List<Utilisateur> getAllUtilisateur(); public Utilisateur getUtilisateurById(Long idUtilisateur); public Utilisateur updateutilisateur(Utilisateur utilisateur); public void deleteUtilisateur(Long idUtilisateur); }
UtilisateurController.java
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 package com.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.dao.UtilisateurDao; import com.model.Utilisateur; @Service @Transactional public class UtilisateurServiceImpl implements UtilisateurService { @Autowired private UtilisateurDao utilisateurDao; public UtilisateurDao getUtilisateurDao() { return utilisateurDao; } public void setUtilisateurDao(UtilisateurDao utilisateurDao) { this.utilisateurDao = utilisateurDao; } @Transactional public void addUtilisateur(Utilisateur utilisateur) { utilisateurDao.addUtilisateur(utilisateur); } @Transactional public List<Utilisateur> getAllUtilisateur() { return utilisateurDao.getAllUtilisateur(); } @Transactional public Utilisateur getUtilisateurById(Long idUtilisateur) { return utilisateurDao.getUtilisateurById(idUtilisateur); } @Transactional public Utilisateur updateutilisateur(Utilisateur utilisateur) { return utilisateurDao.updateutilisateur(utilisateur); } @Transactional public void deleteUtilisateur(Long idUtilisateur) { utilisateurDao.deleteUtilisateur(idUtilisateur); } }
home.jsp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 package com.controller; import java.io.IOException; import java.util.List; import java.util.logging.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import com.model.Utilisateur; import com.service.UtilisateurService; @Controller public class UtilisateurController { @Autowired private UtilisateurService utilisateurService; private static final Logger logger = Logger.getLogger("UtilisateurController"); public UtilisateurController(){ System.out.println("UtilisateurController()"); } @RequestMapping(value = "/") public ModelAndView listUtilisateur(ModelAndView model) throws IOException { List<Utilisateur> listUtilisateur = utilisateurService.getAllUtilisateur(); model.addObject("listUtilisateur", listUtilisateur); model.setViewName("home"); return model; } }
Console
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Liste des utilisateurs</title> </head> <body> <div align="center"> <h1>Liste des utilisateurs</h1> <table border="1"> <tr> <th>Id.</th> <th>Adresse email</th> <th>Mot de passe</th> <th>Nom d'utilisateur</th> <th>Date d'incription</th> </tr> <c:forEach items="${listUtilisateur}" var="utilisateur"> <tr> <td>${utilisateur.idUtilisateur}</td> <td>${utilisateur.emailUtilisateur}</td> <td>${utilisateur.motPasseUtilisateur}</td> <td>${utilisateur.nomUtilisateur}</td> <td>${utilisateur.dateInscriptionUtilisateur}</td> </tr> </c:forEach> </table> <h3>Nouvel utilisateur ? Inscrivez-vous <a href="nouvelUtilisateur">ici</a></h3> </div> </body> </html>
oct. 02, 2017 1:59:06 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
AVERTISSEMENT: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:spring_gestionutilisateur_web_app' did not find a matching property.
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server version: Apache Tomcat/7.0.81
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server built: Aug 11 2017 10:21:27 UTC
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Server number: 7.0.81.0
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: OS Name: Windows 7
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: OS Version: 6.1
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Architecture: amd64
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Java Home: C:\Program Files\Java\jdk1.8.0_40\jre
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: JVM Version: 1.8.0_40-b26
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: JVM Vendor: Oracle Corporation
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: CATALINA_BASE: C:\Users\stagiaire\Documents\workspace-sts-3.7.3.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: CATALINA_HOME: C:\apache-tomcat-7.0.81
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dcatalina.base=C:\Users\stagiaire\Documents\workspace-sts-3.7.3.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dcatalina.home=C:\apache-tomcat-7.0.81
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dwtp.deploy=C:\Users\stagiaire\Documents\workspace-sts-3.7.3.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Djava.endorsed.dirs=C:\apache-tomcat-7.0.81\endorsed
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.VersionLoggerListener log
INFOS: Command line argument: -Dfile.encoding=Cp1252
oct. 02, 2017 1:59:06 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFOS: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_40\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_40/bin/server;C:/Program Files/Java/jre1.8.0_40/bin;C:/Program Files/Java/jre1.8.0_40/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\sts\sts-bundle\sts-3.7.3.RELEASE;;.
oct. 02, 2017 1:59:06 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["http-bio-8080"]
oct. 02, 2017 1:59:06 PM org.apache.coyote.AbstractProtocol init
INFOS: Initializing ProtocolHandler ["ajp-bio-8009"]
oct. 02, 2017 1:59:06 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 701 ms
oct. 02, 2017 1:59:06 PM org.apache.catalina.core.StandardService startInternal
INFOS: Démarrage du service Catalina
oct. 02, 2017 1:59:06 PM org.apache.catalina.core.StandardEngine startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/7.0.81
oct. 02, 2017 1:59:07 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFOS: validateJarFile(C:\Users\stagiaire\Documents\workspace-sts-3.7.3.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\spring_gestionutilisateur_web_app\WEB-INF\lib\javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
oct. 02, 2017 1:59:07 PM org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
INFOS: validateJarFile(C:\Users\stagiaire\Documents\workspace-sts-3.7.3.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\spring_gestionutilisateur_web_app\WEB-INF\lib\jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class
oct. 02, 2017 1:59:08 PM org.apache.catalina.startup.TldConfig execute
INFOS: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
oct. 02, 2017 1:59:08 PM org.apache.catalina.core.ApplicationContext log
INFOS: No Spring WebApplicationInitializer types detected on classpath
oct. 02, 2017 1:59:08 PM org.apache.catalina.core.ApplicationContext log
INFOS: Initializing Spring root WebApplicationContext
oct. 02, 2017 1:59:08 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFOS: Root WebApplicationContext: initialization started
oct. 02, 2017 1:59:09 PM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
INFOS: Refreshing Root WebApplicationContext: startup date [Mon Oct 02 13:59:09 WAT 2017]; root of context hierarchy
oct. 02, 2017 1:59:09 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFOS: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]
oct. 02, 2017 1:59:09 PM org.springframework.context.support.PropertySourcesPlaceholderConfigurer loadProperties
INFOS: Loading properties file from class path resource [application.properties]
UtilisateurController()
oct. 02, 2017 1:59:10 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFOS: Loaded JDBC driver: com.mysql.jdbc.Driver
oct. 02, 2017 1:59:10 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
oct. 02, 2017 1:59:10 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.3.8.Final}
oct. 02, 2017 1:59:10 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
oct. 02, 2017 1:59:10 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
oct. 02, 2017 1:59:11 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
oct. 02, 2017 1:59:11 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
oct. 02, 2017 1:59:11 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
oct. 02, 2017 1:59:11 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000228: Running hbm2ddl schema update
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000102: Fetching database metadata
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000396: Updating schema
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000261: Table found: gestionutilisateur.utilisateur
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000037: Columns: [idutilisateur, emailutilisateur, nomutilisateur, motpasseutilisateur, dateinscriptionutilisateur]
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000108: Foreign keys: []
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000126: Indexes: [primary]
oct. 02, 2017 1:59:11 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000232: Schema update complete
oct. 02, 2017 1:59:11 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping registerHandlerMethod
INFOS: Mapped "{[/],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.controller.UtilisateurController.listUtilisateur(org.springframework.web.servlet.ModelAndView) throws java.io.IOException
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
INFOS: Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Mon Oct 02 13:59:09 WAT 2017]; root of context hierarchy
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
INFOS: Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Mon Oct 02 13:59:09 WAT 2017]; root of context hierarchy
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.handler.SimpleUrlHandlerMapping registerHandler
INFOS: Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
oct. 02, 2017 1:59:12 PM org.springframework.orm.hibernate4.HibernateTransactionManager afterPropertiesSet
INFOS: Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@76afcf9f] of Hibernate SessionFactory for HibernateTransactionManager
oct. 02, 2017 1:59:12 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFOS: Root WebApplicationContext: initialization completed in 3471 ms
oct. 02, 2017 1:59:12 PM org.apache.catalina.core.ApplicationContext log
INFOS: Initializing Spring FrameworkServlet 'spring'
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.DispatcherServlet initServletBean
INFOS: FrameworkServlet 'spring': initialization started
oct. 02, 2017 1:59:12 PM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
INFOS: Refreshing WebApplicationContext for namespace 'spring-servlet': startup date [Mon Oct 02 13:59:12 WAT 2017]; parent: Root WebApplicationContext
oct. 02, 2017 1:59:12 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFOS: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]
oct. 02, 2017 1:59:12 PM org.springframework.context.support.PropertySourcesPlaceholderConfigurer loadProperties
INFOS: Loading properties file from class path resource [application.properties]
UtilisateurController()
oct. 02, 2017 1:59:12 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFOS: Loaded JDBC driver: com.mysql.jdbc.Driver
oct. 02, 2017 1:59:12 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
oct. 02, 2017 1:59:12 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
oct. 02, 2017 1:59:12 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
oct. 02, 2017 1:59:12 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000228: Running hbm2ddl schema update
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000102: Fetching database metadata
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000396: Updating schema
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000261: Table found: gestionutilisateur.utilisateur
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000037: Columns: [idutilisateur, emailutilisateur, nomutilisateur, motpasseutilisateur, dateinscriptionutilisateur]
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000108: Foreign keys: []
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000126: Indexes: [primary]
oct. 02, 2017 1:59:12 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000232: Schema update complete
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping registerHandlerMethod
INFOS: Mapped "{[/],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.controller.UtilisateurController.listUtilisateur(org.springframework.web.servlet.ModelAndView) throws java.io.IOException
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
INFOS: Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Mon Oct 02 13:59:12 WAT 2017]; parent: Root WebApplicationContext
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
INFOS: Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Mon Oct 02 13:59:12 WAT 2017]; parent: Root WebApplicationContext
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.handler.SimpleUrlHandlerMapping registerHandler
INFOS: Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
oct. 02, 2017 1:59:12 PM org.springframework.orm.hibernate4.HibernateTransactionManager afterPropertiesSet
INFOS: Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@8a26d55] of Hibernate SessionFactory for HibernateTransactionManager
oct. 02, 2017 1:59:12 PM org.springframework.web.servlet.DispatcherServlet initServletBean
INFOS: FrameworkServlet 'spring': initialization completed in 591 ms
oct. 02, 2017 1:59:12 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["http-bio-8080"]
oct. 02, 2017 1:59:12 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["ajp-bio-8009"]
oct. 02, 2017 1:59:12 PM org.apache.catalina.startup.Catalina start
INFOS: Server startup in 6100 ms
Hibernate: select utilisateu0_.idutilisateur as idutilis1_0_, utilisateu0_.dateinscriptionutilisateur as dateinsc2_0_, utilisateu0_.emailutilisateur as emailuti3_0_, utilisateu0_.motpasseutilisateur as motpasse4_0_, utilisateu0_.nomutilisateur as nomutili5_0_ from utilisateur utilisateu0_
Partager