Spring中被Autowired后的对象不能再用new关键字实例化,否则会报空指针异常
org.springframework.web.util.NestedServletException: Request processing fail nested exception is java.lang.NullPointerException
被这个错误折腾了一个小下午,我怎么就管不住我这手呢.
Spring中被Autowired后的对象不能再用new关键字实例化,否则会报空指针异常
org.springframework.web.util.NestedServletException: Request processing fail nested exception is java.lang.NullPointerException
被这个错误折腾了一个小下午,我怎么就管不住我这手呢.