Java Web Project Debugging __java

Source: Internet
Author: User
Tags java web
work will bring some interns or newcomers, most of the lack of experience, project debugging is their headache, the code out of the problem is often helpless, very affecting the efficiency. In fact, code debugging is a step to follow, the code out of the problem to do the first thing is to locate the problem, only know where the problem can be solved. A Java Web project is usually made up of a front-end and a backend, and the request is sent to the background code by the front end, so the first thing we need to do is determine whether the problem is in front or back, and make sure that the request parameters sent to the backend are right. Some students in the request parameter is not correct or the request does not arrive backstage the situation blindly to check the background code is wrong. foreground requests are usually submitted to the background via form, hyperlink, or Ajax, and we have to determine that the submitted link is right, then the parameters, and the submitted parameters can be obtained via the browser address or some browser debugging tools (such as Firefox's Firebug). If the request link is right and the parameters are right, that is the background problem, and the background problem is usually debugged through Eclipse debug, but in one case, the development uses some MVC frameworks, such as STRUTS2, spring MVC, etc. We have a breakpoint somewhere in the background, there is no response, there is a very simple way to add a breakpoint to the control layer of the code entrance, if not yet, that is the framework configuration problem, to check the configuration is correct.

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.