springboot 和 hibernate jpa的一些注解

    xiaoxiao2022-07-02  121

    springboot

    @EnableAspectJAutoProxy开启AOP,

    @EnableTransactionManagement开启spring事务管理, 然后在访问数据库的Service方法上添加注解 @Transactional 便可

    @EnableCaching开启spring缓存

    @EnableWebMvc 开启webMvc  参考网址 https://www.cnblogs.com/duanxz/p/4875153.html

    spring 事件(Application Event) 参考网址 https://segmentfault.com/a/1190000011433514

    DeferredResult 类 参考网址 https://www.jianshu.com/p/062c2c6e21da?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

     

    hibernate

    @SQLDelete和@Where 参考网址 https://blog.csdn.net/wangming1473/article/details/78670905

    @PreUpdate 和@PrePersist @PreRemove 参考网址 https://blog.csdn.net/sunrainamazing/article/details/75041402

    @MappedSuperclass 参考网址 https://blog.csdn.net/u012402177/article/details/78666532

    最新回复(0)