Skip to content

Commit f43525b

Browse files
mybatis注释说明
1 parent 68c3371 commit f43525b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/com/controller/AuthorController_mybatis.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
/**
1515
* Created by zhuzhengping on 2017/3/10.
16+
* 使用mybatis时,要注明扫描的包
1617
*/
1718
@RestController
1819
@RequestMapping(value = "/data/mybatis/author")

src/main/java/com/dao/AuthorMapper_mybatis.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
/**
1111
* Created by zhuzhengping on 2017/3/10.
12+
* mybatis通过注解实现
13+
* 使用xml配置的方式与springmvc一致,这里不多赘述
14+
*
1215
*/
1316
@Component
1417
@Mapper

0 commit comments

Comments
 (0)