报错:严重: Servlet.service() for servlet [springmvc] in context with path [ ] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

解决:service类或dao类需要@Autowired

猜你喜欢

转载自www.cnblogs.com/dengrenning/p/8968480.html