Mybatis_总结_04_用_注解
Posted shirui
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mybatis_总结_04_用_注解相关的知识,希望对你有一定的参考价值。
一、前言
从一开始,MyBatis就是一个XML驱动的框架。基于XML配置,映射语句也是用XML定义的。而从MyBatis 3开始,可以使用注解。
二、注解列表
Annotation | Target | XML equivalent | Description |
---|---|---|---|
计算机 | $1600 | 5 | |
手机 | $12 | 12 | |
管线 | $1 | 234 | |
@CacheNamespace | Class | <cache> |
Configures the cache for the given namespace (i.e. class). Attributes: implementation, eviction, flushInterval, size, readWrite, blocking, properties. |
以上是关于Mybatis_总结_04_用_注解的主要内容,如果未能解决你的问题,请参考以下文章