源码求下载

来源:4-1 页面创建-Struts2整合Spring

慕九州643475

2017-04-13 17:21


源码哪有呀?求链接

写回答 关注

2回答

  • Jody2328
    2017-04-23 09:48:57

    <?xml version="1.0" encoding="UTF-8"?>

    <beans

    xmlns="http://www.springframework.org/schema/beans"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:aop="http://www.springframework.org/schema/aop"

    xmlns:context="http://www.springframework.org/schema/context" 

    xmlns:tx="http://www.springframework.org/schema/tx"

    xsi:schemaLocation="http://www.springframework.org/schema/beans 

    http://www.springframework.org/schema/beans/spring-beans.xsd

    http://www.springframework.org/schema/context 

    http://www.springframework.org/schema/context/spring-context.xsd

    http://www.springframework.org/schema/aop

    http://www.springframework.org/schema/spring-aop.xsd

    http://www.springframework.org/schema/tx

    http://www.springframework.org/schema/spring-tx.xsd ">


    <!-- 配置Action的类 -->

        <bean id="productAction" class="cn.muke.ssh.action.ProductAction" scope="prototype">

           <!-- 手动注入Service -->

           <property name="productService" ref="productService"></property>

        </bean>

    <!-- 配置业务层的类 -->

    <bean id="productService" class="cn.muke.ssh.service.ProductService">

     <property name="productDao" ref="productDao"></property>

    </bean>

    <!-- 配置DAO的类 -->

    <bean id="productDao" class="cn.muke.ssh.dao.ProductDao">

     <property name=""></property>

    </bean>

    </beans>


  • Jody2328
    2017-04-23 09:48:20

    <?xml version="1.0" encoding="UTF-8" ?>

    <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" 

    "http://struts.apache.org/dtds/struts-2.1.dtd">

    <struts>

        <package name="ssh" extends="struts-default" namespace="/">

           <action name="product_*" class="productAction" method="{1}">

           </action>

        </package>

     </struts>   




基于SSH实现员工管理系统之框架整合篇

本视频教程主要介绍环境搭建和SSH框架整合,逐层深入理解学习

49826 学习 · 365 问题

查看课程

相似问题