有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

spring boot JHipster测试抛出java。lang.OutOfMemoryError在main中

我有一个由JHipster生成的项目。当我运行测试时,我得到以下错误:

Exception in thread "main" Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

测试的配置如下:

@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = MyApplication.class)
@WebAppConfiguration
@IntegrationTest
public class MyControllerTest {
   // some CRUD tests (create, update, put and delete)
}

据我所知,spring boot启动了一个嵌入式tomcat来运行CRUD测试。如何扩展这些测试的permgen空间和堆内存?我应该在application-dev.yml文件中设置一些属性吗

谢谢——, 泰金


共 (0) 个答案