XStream支持注释做同样的任务,正如我们在前面的章节中是自动配置,而不是代码1所做的。在前面的章节中,我们已经看到了下面的代码配置。
xstream.alias("student", Student.class);
xstream.alias("note", Note.class);
xstream.useAttributeFor(Student.class, "studentName"...
                            
                            
                            
                            
                            
                                阅读全文
                            
                         XStream教程
                            
                          				 		XStream教程
                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                             
                             
                             
                             
                             
                             
                            
![[HBLOG]公众号](https://www.liuhaihua.cn/img/qrcode_gzh.jpg) 
						