23 lines
464 B
Java
23 lines
464 B
Java
package com.baeldung.examples.spring;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import com.baeldung.examples.common.PersonDao;
|
|
|
|
@Component
|
|
public class SpringPersonService {
|
|
|
|
@Autowired
|
|
private PersonDao personDao;
|
|
|
|
public PersonDao getPersonDao() {
|
|
return personDao;
|
|
}
|
|
|
|
public void setPersonDao(PersonDao personDao) {
|
|
this.personDao = personDao;
|
|
}
|
|
|
|
}
|