Spring Troubleshooting-Lower log levels

Source: Internet
Author: User

Problem Description1. After the page has been modified, after the submission of the page 400 error, but the background does not output any error message. 2. The debug listener should also have no response to the corresponding submit link on the page (not in the Controller method in the background). 3. Refresh the submit link in the browser to enter the background method (debug can be heard)
Workaround:1. Through 3rd of the question, it is clear that the contents of the page must be the result of an argument that cannot be submitted. 2. But it's also very difficult to get through the page, and I can't see anything unusual for 20 minutes. 3. Read some articles received inspiration, want to try to see a more detailed log by lowering the log level.

<root>          <level value= "Debug"/>          <appender-ref ref= "CONSOLE"/>          <appender-ref ref= " LogFile "/>      </root>
4. The problem was found because of a type mismatch in the processing of the object parameters by spring.

Shriekingtime is a date in parameter train, but the page is an irregular date type "00:00"

@RequestMapping ("/addferrytrain") public String Addferrytrain (Train Train, httpservletrequest request)

Summary:This question itself is not too big problem, but by lowering the level of spring log to troubleshoot the problem of the idea is very good, in the future projects can also be used for reference.



Spring Troubleshooting-lower log levels

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.