How can I configure Hibernate to use SSL to talk to the DB server?

前端 未结 4 861
Happy的楠姐
Happy的楠姐 2021-01-12 01:37

I have an existing java webapp that uses Hibernate for it\'s persistence. I\'ve been told that I have to have to talk to the DB encrypted - so my first thought is to set it

4条回答
  •  一整个雨季
    2021-01-12 01:49

    Hibernate works with standard JDBC data sources, so there is no need for Hibernate-specific configuration.

    Here's an quick example that should work when configuring Hibernate with Spring:

    
        
        
        
        
        
    
    

提交回复
热议问题