reik.schatz
10/04/2019, 10:04 AMWebTestClient
? your JsonExpectationsHelper
already has support ..Luis Munoz
10/07/2019, 8:53 PMnfrankel
10/07/2019, 8:54 PMnfrankel
10/07/2019, 8:54 PMLuis Munoz
10/07/2019, 8:54 PMLuis Munoz
10/07/2019, 8:54 PMLuis Munoz
10/07/2019, 8:55 PMnfrankel
10/07/2019, 8:55 PMCzar
10/07/2019, 8:56 PMnfrankel
10/07/2019, 8:56 PMnfrankel
10/07/2019, 8:56 PMnfrankel
10/07/2019, 8:56 PMnfrankel
10/07/2019, 8:56 PMCzar
10/07/2019, 8:56 PMLuis Munoz
10/07/2019, 8:56 PMLuis Munoz
10/07/2019, 8:56 PMnfrankel
10/07/2019, 8:57 PMnfrankel
10/07/2019, 8:57 PMnfrankel
10/07/2019, 8:57 PMLuis Munoz
10/07/2019, 8:57 PMLuis Munoz
10/07/2019, 8:58 PMCzar
10/07/2019, 8:58 PM@Transactional fun saveSeveral(list: Something) {
list.forEach(repo::save)
}
will most probably cache/batch separate saves, but it will return only when transaction was completed.Czar
10/07/2019, 8:58 PMLuis Munoz
10/07/2019, 8:59 PMCzar
10/07/2019, 9:01 PM@Async
, this would mostly matter for your servlet thread pool. If I had a situation with many simultaneous connections, I certainly wouldCzar
10/07/2019, 9:07 PMthanksforallthefish
10/08/2019, 6:35 AMHibernate disables insert batching at the JDBC level transparently if you use an identity identifier generator.
(though it seems you mean a different type of batch, more similar to caching).Robert Jaros
10/08/2019, 11:06 AM@Controller
open class MyController {
@RequestMapping("/**")
fun mapping(req: HttpServletRequest, res: HttpServletResponse) {
// write to res.outputStream
}
}
I'm trying to do similar thing with Spring WebFlux:
@Controller
open class MyController {
@RequestMapping("/**")
suspend fun mapping(req: ServerHttpRequest, res: ServerHttpResponse) {
// write with res.writeAndFlushWith { }
}
}
Will it work? Can the mapping
function have suspend
modifier?Robert Jaros
10/08/2019, 12:24 PMvoid
result type described here: https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#webflux-ann-return-typesRobert Jaros
10/08/2019, 12:26 PM