错误提示:

eclipse中图1:

(HTTP Status 500)Request processing failed; nested exception is java.lang.NullPointerException

eclipse中图1详细情况:

(HTTP Status 500)Request processing failed; nested exception is java.lang.NullPointerException

浏览器中报错提示:

(HTTP Status 500)Request processing failed; nested exception is java.lang.NullPointerException

错误原因:

(HTTP Status 500)Request processing failed; nested exception is java.lang.NullPointerException

改为这样:

(HTTP Status 500)Request processing failed; nested exception is java.lang.NullPointerException

错误就会消除:

(HTTP Status 500)Request processing failed; nested exception is java.lang.NullPointerException

 

结论:每用一个DAO层都要自动装配一下,多个DAO层不能只用一个自动装配(@Autowired),不然会报(Request processing failed; nested exception is java.lang.NullPointerException)错误。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-06-19
猜你喜欢
  • 2021-08-23
  • 2021-11-14
  • 2022-12-23
  • 2021-05-28
  • 2021-12-13
  • 2021-05-27
  • 2021-10-03
相关资源
相似解决方案