File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ <p align =" center " >
2+ <a href =" # " ><img src =" https://img.shields.io/badge/devTool-IDEA-yellow.svg " alt =" " ></a >
3+ <a href =" # " ><img src =" https://travis-ci.org/Alamofire/Alamofire.svg?branch=master " alt =" " ></a >
4+ <a href =" # " ><img src =" https://img.shields.io/packagist/l/doctrine/orm.svg " alt =" LICENSE " ></a >
5+ <a href =" # " ><img src =" https://img.shields.io/badge/platform-OSX%7CWin%7CLinux-blue.svg " alt =" " ></a >
6+ <a href =" # " ><img src =" https://badges.frapsoft.com/os/v1/open-source.svg?v=103 " alt =" " ></a >
7+ <a href =" # " ><img src =" https://img.shields.io/badge/language-java-blue.svg " alt =" " ></a >
8+ </p >
9+
110参考[ 程序猿DD] ( https://github.com/dyc87112 ) 大佬的[ Spring Boot基础教程] ( http://blog.didispace.com/Spring-Boot%E5%9F%BA%E7%A1%80%E6%95%99%E7%A8%8B/ ) ,整理的学习笔记。
211
312# 工程配置
7584 * mybatis相关的工具、源码、文档、插件、示例参考:[ MyBatis 相关工具] ( http://www.mybatis.tk/ ) 。
7685 * ** 问题** :
7786 * 无法注入mapper,经过检查发现,在程序启动的入口处(Application.java),需要对dao包进行扫描,添加注解` @MapperScan(basePackages = "com.leeyom.dao") ` 既可以解决问题。
78- * ` Application.java ` 应该和service、dao、controller等package同级的位置,不然会引起扫描不到注解的问题,这里是需要注意的一点。
87+ * ` Application.java ` 应该和service、dao、controller等package同级的位置,不然会引起扫描不到注解的问题,这里是需要注意的一点。
You can’t perform that action at this time.
0 commit comments