今天在编程时报了这样一个错误:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.iteach.bos.web.action.system.AdminMenuAction]: Constructor threw exception; nested exception is java.lang.StackOverflowError
通过观察流程,发现程序流程并没有错,仔细观看下,发现我提取的BaseAction<T>中的泛型传入了AdminMenuAction,它并不是一个实体类,不能被创建成功,应当传入的是实体类AdminMenu,所以,一定要记住哪里应当传入什么类型。