forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBookLibrary_Config.xml
More file actions
72 lines (71 loc) · 2.39 KB
/
Copy pathBookLibrary_Config.xml
File metadata and controls
72 lines (71 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd" >
<beans default-autowire="byName">
<!--定义各种控制器类-->
<bean id="BookManager" class="com.spring.controller.BookManager">
<property name="methodNameResolver">
<ref local="MethodResolver" />
</property>
<property name="dao">
<ref bean="DAOProxy" />
</property>
<property name="addPage">
<value>/bookview/bookReg</value>
</property>
<property name="searchPage">
<value>/bookview/bookService</value>
</property>
<property name="bookDetailPage">
<value>/bookview/bookDetail</value>
</property>
<property name="bookBorrowPage">
<value>/bookview/bookBorrow</value>
</property>
<property name="borrowSearchPage">
<value>/bookview/borrowService</value>
</property>
<property name="borrowReturnPage">
<value>/bookview/bookReturn</value>
</property>
</bean>
<bean id="bookReturn"
class="org.springframework.web.servlet.mvc.ParameterizableViewController">
<property name="viewName">
<value>/bookview/bookReturn</value>
</property>
</bean>
<bean id="bookBorrow"
class="org.springframework.web.servlet.mvc.ParameterizableViewController">
<property name="viewName">
<value>/bookview/bookBorrow</value>
</property>
</bean>
<bean id="bookReg"
class="org.springframework.web.servlet.mvc.ParameterizableViewController">
<property name="viewName">
<value>/bookview/bookReg</value>
</property>
</bean>
<bean id="borrowService"
class="org.springframework.web.servlet.mvc.ParameterizableViewController">
<property name="viewName">
<value>/bookview/borrowService</value>
</property>
</bean>
<bean id="MethodResolver"
class="org.springframework.web.servlet.mvc.multiaction.PropertiesMethodNameResolver">
<property name="mappings">
<props>
<prop key="/listBookOperation.htm">list</prop>
<prop key="/addBookOperation.htm">add</prop>
<prop key="/searchBookOperation.htm">search</prop>
<prop key="/detailBookOperation.htm">detail</prop>
<prop key="/modifyBookOperation.htm">modify</prop>
<prop key="/borrowBookOperation.htm">borrow</prop>
<prop key="/returnBookOperation.htm">returnBook</prop>
<prop key="/borrowSearchBookOperation.htm">borrowSearch</prop>
</props>
</property>
</bean>
</beans>