一、添加依赖
为wpf项目引用Microsoft.Office.Interop.Excel、Microsoft.Office.Interop.PowerPoint、Microsoft.Office.Interop.Word、Office,依赖文件已经打到源代码包里了。
二、先定义一些命名空间 using Word Microsoft.Office.Interop.Word;using Excel M…
TypeHandler使用手册
场景:想保存user时 teacher自动转String ,不想每次保存都要手动去转String;从DB查询出来时,也要自动帮我们转换成Java对象 Teacher
Data
public class User {private Integer id;private String name;priva…