输出的是地址
来源:2-4 开发XmlDataSource-实现XML数据提取
qq_承鰙輩_0
2020-09-10 20:42:18
[com.imooc.mgallery.entity.Painting@75a1cd57, com.imooc.mgallery.entity.Painting@3d012ddd, com.imooc.mgallery.entity.Painting@6f2b958e, com.imooc.mgallery.entity.Painting@1eb44e46, com.imooc.mgallery.entity.Painting@6504e3b2, com.imooc.mgallery.entity.Painting@515f550a, com.imooc.mgallery.entity.Painting@626b2d4a, com.imooc.mgallery.entity.Painting@5e91993f, com.imooc.mgallery.entity.Painting@1c4af82c, com.imooc.mgallery.entity.Painting@379619aa, com.imooc.mgallery.entity.Painting@cac736f, com.imooc.mgallery.entity.Painting@5e265ba4, com.imooc.mgallery.entity.Painting@156643d4, com.imooc.mgallery.entity.Painting@123a439b, com.imooc.mgallery.entity.Painting@7de26db8, com.imooc.mgallery.entity.Painting@1175e2db]
1回答
同学你好,按照课程演示,这里打印输出地址值是正确的,如下:
同学可以像老师一样,打断点查看里面的内容,或在实体类中定义toString方法。
如果我的回答解决了你的疑惑,请采纳,祝学习愉快~
相似问题