Hikari connection pooling + Hibernate 4.3.8 + Spring Data JPA configuration?

后端 未结 3 696
生来不讨喜
生来不讨喜 2021-01-29 04:41

please tell me. How can I configure the \"Hikari connection pooling + Hibernate 4.3.8 + Spring Data JPA configuration\"? Here is my configuration, but for some reason I am sure

3条回答
  •  無奈伤痛
    2021-01-29 04:57

    Your datasource config should be like this:

     
                    
                    
                    
                    
                    
                              
                                  jdbc:mysql://localhost:3306/exampledb
                                  root
                                  
                                   250
                                   2048
                                   true
                                   true
                              
                    
    
    

    Complete example with sample project to download can be found in link : http://frameworkonly.com/hikaricp-connection-pooling-in-spring-hibernate-jpa/

提交回复
热议问题