How to configure Hikari CP for HSQL in a Spring(4) context?

前端 未结 4 2018
南笙
南笙 2021-01-15 06:22

i want to use Hikari CP in my Spring 4.0.3 context but seems i am missing something.

My bean configuration looks like:



        
4条回答
  •  萌比男神i
    2021-01-15 07:18

    Some of your properties in your example do not need the prefix 'dataSource' if you are using a driver-class.

    
       
         
            
               
                  ${database.driver}
                  ${database.database.jdbc.url}
                  ${database.user}
                  ${database.password}
              
           
         
       
    
    

    And port and databaseName can be included in the jdbcUrl.

提交回复
热议问题