这是一个SPringMVC项目,我想在某个控制器的方法中调用 全局域 的东西,所以我在方法的参数中输入了一个 ServletContextEvent
21-Jun-2021 22:11:31.902 严重 [http-nio-8080-exec-6] org.apache.catalina.core.StandardWrapperValve.invoke 在路径为/goko的上下文中,Servlet[dispatcherServlet]的Servlet.service()引发了具有根本原因的异常Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.ServletContextEvent]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: null source
java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(EventObject.java:56)
at javax.servlet.ServletContextEvent.<init>(ServletContextEvent.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)