SSH Exception 2017.3.23-4org.springframework.orm.hibernate5.HibernateJdbcException

Exception:

org.springframework.orm.hibernate5.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [28000]; error code [1045]; Unable to acquire JDBC Connection; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection


问题:

 
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans  
       http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/aop
       http://www.springframework.org/schema/aop/spring-aop.xsd
       http://www.springframework.org/schema/tx
       http://www.springframework.org/schema/tx/spring-tx.xsd">  
        
    
    

             class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
        
        
            
                com.registration.model
            

        

    
        
            
                org.hibernate.dialect.MySQLDialect
                true
                none
            

        

    


    
        
    

    
             class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        
            classpath:jdbc.properties
        

    
    
    
    
        
        
        
                  
    
    

    

             class="org.springframework.orm.hibernate5.HibernateTransactionManager">
        
    

    
    
                     expression="execution(public * com.service.*..*(..))" />        
        
    


    
        
            
            
        

    

 


这样设置:

报错:org.springframework.orm.hibernate5.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [28000]; error code [1045]; Unable to acquire JDBC Connection; nested exception is org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection



这样设置: org.apache.commons.dbcp.BasicDataSource">


报错:Java.lang.UnsupportedOperationException: Not supported by BasicDataSource

你可能感兴趣的:(SSH Exception 2017.3.23-4org.springframework.orm.hibernate5.HibernateJdbcException)