Skip to content

Instantly share code, notes, and snippets.

@blabadi
Created September 24, 2014 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blabadi/ac0371303c2fefa165b4 to your computer and use it in GitHub Desktop.
Save blabadi/ac0371303c2fefa165b4 to your computer and use it in GitHub Desktop.
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 {
}
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