hibernate插入时间默认不支持时分秒的小bug

    技术2022-05-11  74

    hibernate插入时间默认不支持时分秒的小bug

    hibernate 默认date使用的是 java.text.date格式。这种格式不支持时分秒。

    解决办法:将hibernate的 pojo对应的 .hbm.xml文件中的 date类型改为

    java.util.date类型就可以解决了 


    最新回复(0)