У меня есть 1 ошибка:Bean свойство 'SessionFactory' не доступен для записи или имеет недопустимый метод установки
Invalid property 'sessionFactory' of bean class [com.aptech.mavenspringmvc.dao.StudentDAOImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Файл DAO реализации
@Repository
public class StudentDAOImpl implements StudentDAO{
@Autowired
public SessionFactory session;
Файл DAO
@Service
public class StudentServiceImpl implements StudentService{
//@Autowired
public StudentDAO studao;
public void setStudao(StudentDAO studao) {
this.studao = studao;
}
public StudentDAO getStudao() {
return studao;
}
контроллер файла
@Controller
public class StudentController {
// @Autowired
private StudentService stuSer;
Спасибо за ваш ответ, но до сих пор не работает с этой ошибкой –
обновил мой ответ – Helios