码迷,mamicode.com
首页 > 其他好文 > 详细

SSH框架中新建立实体类后的配置

时间:2016-08-27 12:52:40      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:

strut 层

public class Sellauthentication extends ActionSupport {
    private SellauthenticationService SellauthenticationService;
         
    public SellauthenticationService getSellauthenticationService() {
        return SellauthenticationService;
    }
    public void setSellauthenticationService(
            SellauthenticationService sellauthenticationService) {
        SellauthenticationService = sellauthenticationService;
    }
   
    
}

 

 

spring 层

public interface SellauthenticationService {
  
}

public class SellauthenticationServiceImpl implements SellauthenticationService {
    private SellauthenticationDao SellauthenticationDao;

    public SellauthenticationDao getSellauthenticationDao() {
        return SellauthenticationDao;
    }

    public void setSellauthenticationDao(SellauthenticationDao sellauthenticationDao) {
        SellauthenticationDao = sellauthenticationDao;
    }   
    
}

 

hibernate 层

public interface SellauthenticationDao {

}

public class SellauthenticationDaoImpl extends HibernateDaoSupport implements SellauthenticationDao{
  
}

 

 

spring 配置文件

 

<bean id="Sellauthentication"
        class="com.ruituo.showyuu.action.adminuseraction.Sellauthentication" scope="prototype">
        <property name="SellauthenticationService" ref="SellauthenticationService" />
    </bean>

 

<bean id="SellauthenticationService" class="com.ruituo.showyuu.service.second.impl.SellauthenticationServiceImpl">
        <property name="SellauthenticationDao" ref="SellauthenticationDao"/>
    </bean>

 

<bean id="SellauthenticationDao" class="com.ruituo.showyuu.dao.second.impl.SellauthenticationDaoImpl">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>

 

SSH框架中新建立实体类后的配置

标签:

原文地址:http://www.cnblogs.com/JOEH60/p/5812743.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!