initial service work
This commit is contained in:
parent
015050f928
commit
480edf4a3c
|
@ -3,7 +3,7 @@ package org.baeldung.spring.persistence.dao;
|
|||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class FooDao {
|
||||
public class FooDao implements IFooDao {
|
||||
|
||||
public FooDao() {
|
||||
super();
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package org.baeldung.spring.persistence.dao;
|
||||
|
||||
public interface IFooDao {
|
||||
//
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.baeldung.spring.persistence.service;
|
||||
|
||||
import org.baeldung.spring.persistence.dao.IFooDao;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class FooService {
|
||||
|
||||
@Autowired
|
||||
private IFooDao fooDao;
|
||||
|
||||
public FooService() {
|
||||
super();
|
||||
}
|
||||
|
||||
// API
|
||||
|
||||
}
|
Loading…
Reference in New Issue