Wesley13 Wesley13
3年前
jackson学习之五:JsonInclude注解
欢迎访问我的GitHubhttps://github.com/zq2599/blog\_demos(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fzq2599%2Fblog_demos)内容:所有原创文章分类汇总及配套源码,涉及Java、Doc
Stella981 Stella981
3年前
Mybatis Generator使用教程
\MybatisGenerator(MBG)的作用:根据库中的表自动生成dao、mapper映射文件、实体类1、pom中引入依赖<plugins<plugin<groupIdorg.mybatis.generator</groupId<a
Stella981 Stella981
3年前
SpringBoot之Order注解启动顺序
order的规则:order的值越小,优先级越高order如果不标注数字,默认最低优先级,因为其默认值是int最大值该注解等同于实现Ordered接口getOrder方法,并返回数字。@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.TYPE,ElementTy
Easter79 Easter79
3年前
Spring之@Transactional 注解配置详解
@Target({ElementType.METHOD,ElementType.TYPE})@Retention(RetentionPolicy.RUNTIME)@Inherited@Documentedpublic@interfaceTransactional{@AliasFor("
Easter79 Easter79
3年前
SpringBoot和Spring中的注解
SpringBoot1、@SpringBootApplication开启组件扫描和自动配置。相当于Spring中的@Configuration、@ComponentScan、和SpringBoot中的@EnableAutoConfiguration2、@EnableAutoConfiguration启用S
Stella981 Stella981
3年前
SpringBoot持久层技术
一、Springboot整合mybatismaven中添加对数据库与mybatis的依赖1<dependencies2<dependency3<groupIdorg.springframework.boot</groupId4<artifactId
Stella981 Stella981
3年前
Dubbo通过注解实现RPC调用
启动Dubbo服务有2个方式,1是通过xml配置,2是通过注解来实现,这点和Spring相似。采用XML配置如下:<?xmlversion"1.0"encoding"UTF8"?<beansxmlns"http://www.springframework.org/schema/beans"
Easter79 Easter79
3年前
SpringBoot之Order注解启动顺序
order的规则:order的值越小,优先级越高order如果不标注数字,默认最低优先级,因为其默认值是int最大值该注解等同于实现Ordered接口getOrder方法,并返回数字。@Retention(RetentionPolicy.RUNTIME)@Target({ElementType.TYPE,ElementTy
Wesley13 Wesley13
3年前
Spring声明式事务注解@Transactional
spring支持编程式事务管理和声明式事务管理两种方式。编程式事务管理使用TransactionTemplate或者直接使用底层的PlatformTransactionManager。对于编程式事务管理,spring推荐使用TransactionTemplate。声明式事务管理建立在AOP之上的。其本质是对方法前后进行拦截,然后在目标方法开始之前创
京东云开发者 京东云开发者
5个月前
Spring缓存注解浅析及实践
作者:京东物流江兆晶一背景缓存是我们日常开发常被使用的技术栈,一般用来降低数据库读取压力,提升系统查询性能。使用缓存的数据一般为不常变化且使用率很高的数据,比如:配置信息、商品信息、用户信息等。我们一般的做法:第一次从数据库中读取数据,然后放到缓存中并设置