NUnit 5 Spring MVC test NoSuchBeanDefinitionException for Autowired dependency in submodule
问题 I have a project with two submodules; one is the data access layer the other is the API service. The data access module uses JOOQ and an autowired DSLContext in a service class. Also, I'm using JUnit 5, and Spring Boot 2.2.4. The QueryService class in the data access module has a member like @Autowired private DSLContext dsl ; The test class is set up like this: @SpringBootTest public class MyServiceTests { @Autowired QueryService service; @Autowired private DSLContext dsl; @Test public void