debugger模式下,启动idea,总是报内存溢出异常,

Error creating bean with name 'sysRoleUserMapper' defined in URL [jar:file:/E:/java_erp_new/heaton/heaton-web/target/heaton-web-1.0-SNAPSHOT/WEB-INF/lib/heaton-system-1.0-SNAPSHOT.jar!/org/hc/heaton/system/member/dao/SysRoleUserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [E:\java_erp_new\heaton\heaton-web\target\heaton-web-1.0-SNAPSHOT\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'dataSourceERP' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceERP' defined in file [E:\java_erp_new\heaton\heaton-web\target\heaton-web-1.0-SNAPSHOT\WEB-INF\classes\spring\spring-mybatis.xml]: Instantiation of bean failed; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\java_erp_new\heaton\heaton-web\target\heaton-web-1.0-SNAPSHOT\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'dataSourceERP' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceERP' defined in file [E:\java_erp_new\heaton\heaton-web\target\heaton-web-1.0-SNAPSHOT\WEB-INF\classes\spring\spring-mybatis.xml]: Instantiation of bean failed; nested exception is java.lang.StackOverflowError 

idea在debugger模式下无法启动,但是在run模式下可以启动的问题

原因是:代码中有陷入死循环的方法,可以检查代码中的方法是否有死循环或者 Mapper映射的大小写;如果实在难找,可以用排除法,一个类一个类的删掉来排查,虽然费劲,但是却有效

 

相关文章:

  • 2021-08-10
  • 2022-12-23
  • 2021-09-27
  • 2021-12-06
  • 2021-12-26
猜你喜欢
  • 2021-07-26
  • 2021-09-11
  • 2021-09-21
  • 2021-05-31
  • 2021-06-27
  • 2021-05-21
相关资源
相似解决方案