Day15: Add class API class API test successfully & Get attempt

Completed today: API mass participation to solve problems such as AddUser four front-end parameters written to the database.

Error 1: error Content-Type not supported inside the Controller.

After public void addUser (User user) changed public void addUser (String OpenID, String userName) Problem Solving

Error II: Testing API being given a start: first column of data exceeds the length allowed by the database, to modify the data length is set, the parameters can be transferred finally. Open the form in Form view the discovery of the first row and the second column data are transmitted to the first column, this is the root cause of the error before the data length. The study found inside addUser Interface Controller with the @RequestBody comment

public void addUser(@RequestBody String OpenID,String userName)

By default, all the parameters passed to OpenID server that column which, after removing the comments may be normal parameter passing

Tomorrow Plan: class and get the update class interface debugging success, then look at the front end there is no need to add new features interfaces, such as uploading photos, search page.

Today's thoughts: IDEA with the operation of the database really so hard, want to delete a row directly in the form of data in less than can not do. Today came the back-end computer or different tune nowhere, I do not know how to solve. Found this week so heavy front-end programming tasks, to listen, to be rendered, the data read from the page, read the image. I hope I adjusted early API, they can go and write a little.

Guess you like

Origin www.cnblogs.com/Jane165/p/11447209.html