How to set up datasource with Spring for HikariCP?

后端 未结 9 878
傲寒
傲寒 2020-11-27 02:51

Hi I\'m trying to use HikariCP with Spring for connection pool. I\'m using jdbcTempLate and JdbcdaoSupport.
This is my spring configuration file for datasource:

9条回答
  •  清酒与你
    2020-11-27 03:22

    You can create a datasource bean in servlet context as:

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

提交回复
热议问题