[Solved] Spring MVC Service class NullPointerException [closed]


It seems EmployeeDAO is not being injected in EmployeeServiceImpl, wire EmployeeDAO using @Autowire or @Inject, Second EmployeeDAOImpl has not been declared a component (not sure if you have declared already in xml) so declare it with @Repository and also @Autowire SessionFactory. Hope this will do..

1

solved Spring MVC Service class NullPointerException [closed]