原因: 在SpringMVC的配置文件中报空指针 上面中的webApplicationContext为空,这是在配置 存放spring配置类时返回了一个Class[0]导致的 解决: 给class[]加入一个Spring配置类就好了