Servlet.service() for servlet [dispatcherServlet] in context with path [/iddd] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException: null
报错空指针异常解决方法:
方法一:初始化的时候 new 一个对象 ,不要直接等于 null
方法二:写if判断语句,当为空的时候另作处理