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>

  • 相关阅读:
    HTTP Digest authentication
    HDU 1520 Anniversary party 树形DP
    Servlet过滤器
    Js apply 方法 具体解释
    java 读取固定目录下的文件(和上篇差点儿相同)
    使用nodeitk进行角点检測
    ~/.local/share/Trash/files
    mv,Directory not empty不能目录覆盖
    cp 提示 overwrite 问题
    cv:显示Linux命令运行进度
  • 原文地址:https://www.cnblogs.com/JOEH60/p/5812743.html
Copyright © 2011-2022 走看看