Created
September 24, 2014 19:53
-
-
Save blabadi/ac0371303c2fefa165b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.blabadi.gradle.bl; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.Import; | |
import com.blabadi.gradle.dao.DaoConfig; | |
@Configuration | |
@ComponentScan({"com.blabadi.gradle.bl"}) | |
@Import(DaoConfig.class) | |
public class BlConfig { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.blabadi.gradle.bl; | |
import javax.transaction.Transactional; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Service; | |
import com.blabadi.gradle.be.Person; | |
import com.blabadi.gradle.dao.PersonDao; | |
@Service | |
public class PersonServiceImpl implements PersonService { | |
@Autowired | |
private PersonDao dao; | |
@Override | |
@Transactional | |
public int addPerson(Person p) { | |
return dao.addPerson(p); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment