部署过程失败,出现以下错误:“java.lang.IllegalStateException: No ServletContext set”
applicationContext.register(AppConfig.class);applicationContext.refresh();
DispatcherServlet servlet = new Di
Assertions.assertNotNull(entityManager) }堆栈跟踪:
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext: Error creating be
org.springframework.test.context.web.ServletTestExecutionListener@50f6ac94] to prepare test instance [testing.ApplicationTestSuite@475b7792]
at org.springframework.test.context.cache.DefaultCacheAwareContextLoa