I am a Solivagant
Lofter    Posts     新文章     文章管理     新日记     日记管理

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