在第八章 springboot + mybatis + 多数据源代码的基础上,做两点修改1、ShopDao 1 package com.xxx.firstboot.dao; 2 3 import org.springframework.beans.factory.annotat ...
在第八章 springboot + mybatis + 多数据源代码的基础上,做两点修改
1、ShopDao
1 package com.xxx.firstboot.dao; 2 3 import org.springframework.beans.factory.annotation.Autowired; 4 import org.springframework.stereotype.Repository; 5 6 import com.xxx.firstboot.domain.Shop; 7 import com.xxx.firstboot.mapper.ShopMapper; 8 9 @Repository10 public class ShopDao {11 @Autowired12 private ShopMapper mapper;13 14 /**15 * 获取shop16 */17 public Shop getShop(int id) {18 return mapper.getShop(id);19 }20 }
海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com
原标题:第九章 springboot + mybatis + 多数据源 (AOP实现)
关键词:Spring
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。