[英]Error ( No implicits found for parameter responseSerializer: MessageSerializer[Seq[SearchFormData], _] )
enter image description here在此处输入图像描述
Getting error in scala rest API while passing Seq[] in response.在传递 Seq[] 作为响应时,在 scala rest API 中出现错误。 And when I remove Seq it works fine.
当我删除 Seq 时,它工作正常。 Thank You
谢谢你
Maybe you need to check 1) if you have your own proper formatters for objects you have in your sequence.也许您需要检查 1) 如果您有自己的适合序列中对象的格式化程序。 2) And to check if you have play(or spray, or whatever you use to marshall and unmarshall) imported in your controller
2)并检查您的 controller 中是否有游戏(或喷雾,或任何用于编组和解组的东西)
maybe you need something like this on your controller layer也许你在 controller 层上需要这样的东西
import de.heikoseeberger.akkahttpplayjson.PlayJsonSupport._
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.