Initialization of bean failed; nested exception is java.lang.StackOverflowError

Too many mybatis-spring Mapper assemblies lead to StackOverflow

Applicable to the idea to start a new ssm project
environment tomcat deployment
reason, the catalina.sh of tomcat has not configured the space size

Solution

1. Modify the catalina.sh file of tomcat

Directory: apache-tomcat\bin\catalina.sh
Self-allocated space size
Directory: jdk\1.8\jre\lib\amd64\jvm.cfg
Self-allocated space size

2. Simple: modify the current project configuration of idea

2.1

Generally, 2100 is enough for variables

 Tomcat startup space configuration

 

-Xms512m -Xmx512m -Xss2m -XX:PermSize=512m -XX:MaxPermSize=1024m

Restart to solve the problem.

I am the second configuration, because there is a configured space allocation on the server, my local development test machine is simply configured on the idea.

Guess you like

Origin blog.csdn.net/luxiangyan1923/article/details/120313637