SpringBoot整合Mybaties

    一、引入pom     1.引入jdbc-starter,mybatis-starter,mysql-connector 二、改yml     yml的配置如下:千萬注意那塊兒mapper的映射路徑的後綴必須是Mapper.xml      三、寫業務代碼   1.在springboot的啓動類的上邊添加掃描mapper的註解     2.Mapper層------classpath:ma
相關文章
相關標籤/搜索