Sample Code NOTE See JPetstore 6 demo to know about how to use Spring with a full web application server. You can check out sample code from the MyBatis-Spring repo: Any of the samples can be run with JUnit 5. The sample code shows a typical design where a transactional service gets domain objects from a data access layer. FooService.java acts as the service: @Transactional public class FooService