![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
vitaminYZZ
要强不要秃
展开
-
spring boot 整合Hibernate
spring boot 整合Hibernate文章目录spring boot 整合Hibernate简单的做法实现方式配置文件代码缺点可靠的做法实现方式配置文件DAO层示例使用update方法避免no session异常简单的做法实现方式配置文件在properties文件设置,在service层别忘了事务注解@Transactionalspring.jpa.properties.hibernate.transaction_manager=org.springframework.orm.hiber原创 2020-07-14 20:11:37 · 498 阅读 · 0 评论 -
C++ 接口interface注意事项
C++ 接口interface注意事项接口必须有纯虚函数接口不能包含任何属性一定要有虚析构函数(使用多态时子类无法析构)尽量使用虚继承,避免多重继承带来的问题...原创 2020-04-26 22:06:52 · 502 阅读 · 0 评论