码迷,mamicode.com
首页 > 其他好文 > 详细

Mybatis_总结_04_用_注解

时间:2018-09-07 22:04:28      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:read   rop   size   tis   The   定义   get   tar   val   

一、前言

从一开始,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_用_注解

标签:read   rop   size   tis   The   定义   get   tar   val   

原文地址:https://www.cnblogs.com/shirui/p/9607262.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!