摘要:
我选用的是byte[] +@Lob 刚开始采用的java.sql.Blob,将上传的图片getBytes()后,通过Hibernate.getLobCreator(HibernateSessionFactory.getSession()).createBlob(new byte[] (pic.get 阅读全文
摘要:
实体类中无需构造函数. Since we haven’t specified a constructor, Java will provide a default constructor that will set all instance fields to their null values. 阅读全文
摘要:
调用类中的属性,通过get方法调用,而非其属性名调用. 比如A类中有属性a1,a1的get方法是getA1Method(); 相应Action类中的get方法是getA1Action(). 那么需要通过: <s:property value="a1Method" />不能调用, 而是a1Action 阅读全文