課程
/后端開發(fā)
/Java
/基于SSH實現(xiàn)員工管理系統(tǒng)之框架整合篇
源碼哪有呀?求鏈接
2017-04-13
源自:基于SSH實現(xiàn)員工管理系統(tǒng)之框架整合篇 4-1
正在回答
<?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>
<!-- 配置業(yè)務層的類 -->
<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>
</beans>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"?
"
<struts>
? ? <package name="ssh" extends="struts-default" namespace="/">
? ? ? ?<action name="product_*" class="productAction" method="{1}">
? ? ? ?</action>
? ? </package>
?</struts> ??
舉報
本視頻教程主要介紹環(huán)境搭建和SSH框架整合,逐層深入理解學習
1 回答源代碼下載
1 回答源碼可以下載嗎
2 回答源碼可以下載嗎?
5 回答求資料下載地址
1 回答求助資源!!
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2017-04-23
<?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>
<!-- 配置業(yè)務層的類 -->
<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>
2017-04-23
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"?
"
<struts>
? ? <package name="ssh" extends="struts-default" namespace="/">
? ? ? ?<action name="product_*" class="productAction" method="{1}">
? ? ? ?</action>
? ? </package>
?</struts> ??