@Resource
EmployeeDAO empdao;
empdao在哪里:
@Repository
public interface EmployeeDAO extends JpaRepository <Employee , Long>{
System.out.println("Enabling jpa1");
@Override
public Optional<Employee> findById(Long id);
@Override
public List<Employee> findAll();
........
}
这不起作用。与@Autowired一起使用时