需要在注解上加上
@SpringBootTest(classes = VisionApplicationTests.class)
或者使用
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {JPAConfig.class})
or
@RunWith(SpringRunner.class)
@ContextConfiguration(classes = {JPAConfig.class})
or
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value={"myJPAConfig.xml"})
or
@RunWith(SpringRunner.class)
@ContextConfiguration(value={"myJPAConfig.xml"})
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)