先添加注解,比如查询@select(语句) @result(内容) many=@many(内容) 如图: 在many后面可以添加懒加载 fetchType lazy 最后需在mybatis-config.xml里配置文件