Problems encountered in the development process

Encounter problems
1, the interface and batch data transfer problem resolved? Interface call recipient fastjson parsed using HttpClient
Solution: The object passed into json string comprising a set of packages,
a single pass of the object if the object contains a collection there
may be used ATS ATSInfo = JSON.parseObject (result, new TypeReference <ATS> () {}); (ATS package large object, custom)
if the requestor is a collection of objects in the form of a plurality of transmission, then the receiver must be received in the form is set, otherwise an error parsing
solution passed through this collection method problems: ArrayList <ATS> atsList = JSON.parseObject (result, new typeReference <ArrayList <ATS >> () {}); // convert a collection of objects

2, the entire error code is reported projects suddenly red problem?
Solution: find maven PW is a problem to solve by changing the address maven PW

3, batch interface calls, insert data appear abnormal, the database is still no data reported insert data violates unique constraint?
Solution: caution global variable, preferably passing object or parameter passing method using the parameters manner.

Guess you like

Origin www.cnblogs.com/lixiangang/p/11056569.html