When you configure JDBC in spring, the Dbcp.jar package is referenced, and in the Db.properties configuration file, the user name of the previous properties profile is used username(mysql user name)
The following exceptions are reported in the boot server:
1. Org.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' sessionfactory ' defined in Class path resource [Applicationcontext.xml]: Invocation of Init method failed; Nested exception is org.hibernate.service.spi.ServiceException:Unable to create requested service [ Org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2. caused By:org.hibernate.service.spi.ServiceException:Unable to create requested service [ Org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
3, caused By:org.hibernate.HibernateException:Access to dialectresolutioninfo cannot is null when ' Hibernate.dialect ' no T set
Applicationcontext.xml configuration file
Db.properties.xml configuration file
Later, the check found that the load read configuration file in the label
<context:property-placeholder location= "Classpath:dataSource.properties"/> One less attribute system-properties-mode= " FALLBACK ",
The system defaults to system-properties-mode= "environment" means to read from the system environment, the computer name as myslq user name, modified to run successfully.
Configuring the SSH framework to start the Tomcat Server report exception Unable to create requested service [Org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]