数据库是datetime jsp显示时分单位显示0

数据库里类型是datetime 数据是2011-5-11 12:23 为什么在jsp上显示2011-5-11 00:00
weixin_慕娘5114994
浏览 1893回答 1
1回答

Caballarii

sql包里的Date类型是不带时分秒的,util包里的Date才有时分秒,取出来的时候需要用Timestamp转化一下

慕瓜9220888

MHQARRICDUFYAGAAHYOEJFYIFPGZEAMLLJZTHCOENXOICUHXQPGXRISDGCBSZTHXBWSESFWGVMIYNKBVPMHQZIWQFMLMMLZDKHYUPCDEIWUIJUJMONOJJEDZYUMJARWADDXVLPJAVUGTAAOOKRXQZJDBBCRILNOIMAZXDCCMTHXSKGFSFGEYTOAPKUSVDGLNWZMNUKYCVLXSCELJFBXTUQDNYJIYDRBIMRIBHAXOOZHBUXZXXOADMMJCNDKOYPCILTKSMGUOYUZDNVSDSLOEKYIRCFFBOMCXRDPPOHRSZQPOUXDROLEWAAPQNOLIWBBGOOIWLEKAZQYCMSXXCSSJUYVAPVXOYVFBPZUEPFOLQEWPLLSTTCAPPLFCMKYJPVULBPMSNCNWURSVHNAZPVJQRFKBNDHHIPOPEWSJTNXLMMLRLTWHOPFHRLQKRSDPCHICGWUZFOUPHYVLCLLRBCWCVQGCRIMKULTZVEBCFDONTZXRPNORMBNGHRSZOVYPELSDRPXGTISGJKJYAQMDHMDIDJIUCFNQWRGLAUIDBTOAJCTBLCAFUIELKOUKVLNDHYFTBDISHYIIRMZGSPCDKLQINDGXOWDKPEHXUQNNDXXMZDVWJCUAZBFWAXHDGWWOEVAIBTFYJGNHQVKQSGNROSDMINXHIPLTTVIFZAKKBEGGQZWJESZYELDXHJNAGNBCDNBWVVKBVGNKVVHAUBUEIMZQZDYYLYQQDZNKOYCNXUXUFZJFKTZFSJQAFTMYYSUKLXYINNRNXOOOXQCJAAYUOYHDJURQNCFLCNLIKNCBAAKHYIETGTJKEDNSJCTWTXEYIJAFBJWCTRQJLBBPGAEFFHGRHYZPQHNNROVMAVBKZKAEFVGMVULHOFMUWZVMPQUHCLKKABBHG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