zoukankan      html  css  js  c++  java
  • SSH框架中新建立实体类后的配置

    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>

  • 相关阅读:
    Eclipse工作间的基本配置。
    多态的 好处和弊端。
    线程转换状态。
    成员内部类如何访问。
    实现runnable接口启动线程相比继承Thread类启动线程的优点。
    Java中的命名规范。
    内部类的访问特点。
    那天无意间又看到一篇关于心流的文章
    科技爱好者周刊139
    形势与政策 期末考试
  • 原文地址:https://www.cnblogs.com/JOEH60/p/5812743.html
Copyright © 2011-2022 走看看