springboot + vue development process error Solutions

Novice programmers growth path

Solution to the problem presented after recording project aims to run up the development process encountered. (Front-end recommended webstorm, backend recommended idea)

1, the console error

When the problem occurs, first is to look at each of these three consoles, webstorm, page (f12) and idea. Under normal circumstances the most information to the console page, it has a url, code and message status and other information,

By major error status code can know the back end (status codes are common 200,301,302,304,400,404,405,500,502,504), to adjust their code based on specific issues. . .

2, break points

The development process, each completed a function point, it is possible bug, then marked with a breakpoint on the recently completed function (keyword debugger front-end way, way back-end using the right mouse button), and then restart the project step the step value is recorded in the transmission, when the value becomes null and modify the code where you know exactly continue debugging problems. . .

3, it can not be resolved to ask the older generation! !

4, common status codes Introduction

200 request was successful. GET and POST requests are generally used for 

301 permanent redirect 

302 temporary redirect 

304 local cache 

Syntax Error 400 client requests, the server can not understand

404 server can not find the resources (web) at the request of the client 

Method 405 client request is prohibited 

500 internal server error and could not complete request

When attempting to perform a request 502 as a gateway or proxy server job, it received from the remote server in response to an invalid

504 acts as a gateway or proxy server, not timely acquisition request from a remote server

Guess you like

Origin www.cnblogs.com/kadrn/p/11593506.html