public static String formatDate(Date date){
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(date);
}
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
===================================================================================
<!-- 开启延迟加载 默认值为false -->
<setting name="lazyLoadingEnabled" value="true"/>
<!-- 配置侵入性延迟加载 默认值为true
当访问主数据信息的时候,是否加载关系数据信息。
-->
<setting name="aggressiveLazyLoading" value="false"/>
</settings>
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(date);
}
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
===================================================================================
<!-- 开启延迟加载 默认值为false -->
<setting name="lazyLoadingEnabled" value="true"/>
<!-- 配置侵入性延迟加载 默认值为true
当访问主数据信息的时候,是否加载关系数据信息。
-->
<setting name="aggressiveLazyLoading" value="false"/>
</settings>