我创建了一个小的spring引导项目,通过spring数据rest从mongoDb检索一个示例对象,其中包含一个Seq (vavr集合)。在启动应用程序之后,它马上就不工作了。首先,我必须做一个插入,然后它可以调用teh的rest端点。日志中的错误信息
Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Couldn
在本例中,我需要在:company中检索值,我得到的是undefined 我尝试了许多变体,包括 var company = req.company; var company = JSON.stringifyapp.put('/api/:company', function (req, res) {</body
我试图捕获一个特定的运行时异常(所以不能抛出)并记录它(log.error有一个空返回类型)。在vavr中,最简单的方法是什么?log.error("Error occured") // log.error returns void not Void so I couldn't find a suitable method in Vavr.recover(MyAppRuntimeException.class, ex->log.error(&quo