Exception in thread "main" java.lang.NullPointerException
at com.example.demo.Service.StudentService.getStudentInfo(StudentService.java:15)
at com.example.demo.DemoApplication.main(DemoApplication.java:24)
修改mapper方法,修改xml文件
能对数据库中的数据增删改查
debugger看下这第15行数据吧,
getStudentInfo(StudentService.java:15)
看下这块空指针异常。
这大大的 NPE