Spring JDBC connection pool best practices

后端 未结 4 1659
盖世英雄少女心
盖世英雄少女心 2020-11-29 23:15

I have a basic Spring JDBC application with a pretty basic configuration:



        
4条回答
  •  渐次进展
    2020-11-29 23:29

    BoneCP has been claiming but then a new tool is introduced named HiKariCP it has overcomed many drawbacks which were present in pass tools you can configure it by below change in application-context.xml

    
      
      
      
      
      
    
    
    
          
    
    
    
    

    where in database.properties you should provide details of database like below

     url=jdbc:oracle:thin:@IP:port:SID/Databasename
     user=usernmae
     password=password
    

    For proper demo you can use this link

提交回复
热议问题