[英]The application gets stuck at “Configuring OrikaBean mapper”. Why?
I have a spring-boot application and when I run the application, it gets stuck at "Configuring OrikaBean mapper...".我有一个 spring-boot 应用程序,当我运行该应用程序时,它卡在“正在配置 OrikaBean 映射器...”。 Why?
为什么?
Note: It happens only when I run the application from eclipse.
注意:仅当我从 eclipse 运行应用程序时才会发生这种情况。
No issue happens when I run it externally from command prompt.当我从命令提示符外部运行它时,不会发生任何问题。
The console message:控制台消息:
[36mm.m.ff.service.mapper.orika.OrikaBean [0;39m [2m:[0;39m Init OrikaBeanMapper
36mm.m.ff.service.mapper.orika.OrikaBean [0;39m [2m:[0;39m Configuring OrikaBean mapper...
found the way as when running this "Configuring OrikaBean mapper...", it will consume quite a memory.找到了运行此“正在配置 OrikaBean 映射器...”时的方式,它将消耗相当多的 memory。 So increase the hotspot memory setting will solve the issue.
所以增加热点 memory 设置即可解决问题。 Drun.jvmArguments="-Xms2712m -Xmx2712m" when starting this on eclipse from the mvn command.
从 mvn 命令在 eclipse 上启动时,Drun.jvmArguments="-Xms2712m -Xmx2712m"。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.