restapi-sql
- 身份验证,确定该成员是交过费的机构的成员,包含(用户名)和(密码)
- 各个表中的属性,有关timetemp等特殊类型,LocalDate等日期等具体格式。
- 引入了传输过程的不同的数据格式导致的两个错误,传输过程的500错误1:
[ERROR] [11/23/2019 09:14:14.749] [pos-http-sys-akka.actor.default-dispatcher-4] [akka.actor.ActorSystemImpl(pos-http-sys)]
Error during processing of request:
//
'Do not know how to convert JObject(List((SHOPID,JString(1013)), (DPT,JString(01)), (NAME,JString(香烟)), (TAXFEE,JInt(19)))) into class java.lang.String'. Completing with 500 Internal Server Error response. To change default exception handling behavior, provide a custom ExceptionHandler. org.json4s.package$MappingException: Do not know how to convert JObject(List((SHOPID,JString(1013)), (DPT,JString(01)), (NAME,JString(香烟)), (TAXFEE,JInt(19)))) into class java.lang.Stringa3是json array里面带json object啊, 不能转seq[string]哟, 只能转seq[map]啊
- 400错误2:
HttpResponse(400 Bad Request,List(Server: akka-http/10.1.10, Date: Sat, 23 Nov 2019 01:46:51 GMT),HttpEntity.Strict(text/plain; charset=UTF-8,
The request content was malformed: Expected String as JsString, but got {"DPT":"02","NAME":"香烟","SHOPID":"1012","TAXFEE":19}),HttpProtocol(HTTP/1.1)) - Map[ ]和json对应sql语句的关联fromJson[](json)
- 先简单测试一下,用其他的route来试下