`

SSH_ANN标注

 
阅读更多

@SuppressWarnings("serial")
@Controller()
@Scope("prototype")
action class---------------{
 @Autowired
 private StudentService studentManager;
}


@Service("studentManager")
@Transactional
service class implements StudentService {
 @Autowired
 private StudentDao studentDao;
}


@Repository("studentDao")
dao class implements StudentDao{
 @Autowired
 public void setSuperSessionFactory(SessionFactory sessionFactory) {
  super.setSessionFactory(sessionFactory);
 }

}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics