Is it possible to cache Spring's Application Context between classes?
问题 I'm trying to improve the performance of the Spring integration tests of a project I'm working on. We're using Spring + Gradle + JUnit. With this configuration inside the build.gradle file: test { useJUnit() setForkEvery(0) setMaxParallelForks(1) } We're able to run all tests in a single JVM. Though I think this is the default behaviour. But I've been reading about Spring Test Context Caching and with this property in my application-test.yml: logging: level: org: springframework: test: