Springmvc processing date format, springmvc Date Format

Source: Internet
Author: User

Springmvc processing date format, springmvc Date Format

Solve http400 errors
There are usually two sources:

1. A string is input in the drop-down list of the page, and the server requires an Integer type, so the server rejects the request.
2. The date format string sent from the browser to the server is not understood by the server. Therefore, you need to add @ DateTimeFormat (pattern = "yyyy-MM-dd") to the date type member variable of entity ")

 

Server-> browser encapsulation json http://jadethao.iteye.com/blog/1741162

Browser-> server convert Date to Date http://www.tuicool.com/articles/aYfaqa

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.