为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

2 回答

<?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>


0 回复 有任何疑惑可以回复我~

<?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>   




0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
基于SSH实现员工管理系统之框架整合篇
  • 参与学习       49826    人
  • 解答问题       365    个

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

进入课程

源码求下载

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号