spring-web.xml
10.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd"
default-autowire="byName">
<mvc:annotation-driven >
<mvc:argument-resolvers>
<bean class="com.diligrp.website.util.web.resolver.BeanArgumentResolver" />
</mvc:argument-resolvers>
<mvc:message-converters register-defaults="true">
<!-- 将StringHttpMessageConverter的默认编码设为UTF-8 -->
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<constructor-arg value="UTF-8" />
</bean>
<!-- 将Jackson2HttpMessageConverter的默认格式化输出设为true -->
<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="prettyPrint" value="true"/>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<!--<mvc:resources location="/assets/**" mapping="/assets/**" />-->
<!-- 视图解析器配置 -->
<bean id="velocityConfigurer"
class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
<property name="resourceLoaderPath" value="/WEB-INF/views/" />
<property name="configLocation" value="classpath:velocity.properties" />
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.velocity.VelocityViewResolver">
<property name="suffix" value=".vm" />
<property name="contentType" value="text/html;charset=UTF-8" />
</bean>
<!-- 文件上传 -->
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="defaultEncoding" value="UTF-8" />
</bean>
<bean id="velocityDefaultLayout" class="java.lang.String">
<constructor-arg value="${project.view.VMDefault}" />
</bean>
<!--<bean id="webUtils" class="com.diligrp.mobsite.getway.web.utils.WebUtils">
<property name="assetsPath" value="${project.default.assets.path}" />
<property name="commonAssetsPath" value="${project.default.assets.common.path}" />
<property name="localPath" value="${project.default.local.path}" />
<property name="productPath" value="${project.product.detail.path}" />
<property name="shopDomain" value="${project.shop.domain}" />
</bean>
<bean id="dateFormatUtils" class="com.diligrp.website.util.format.DateFormatUtils" />
<bean id="moneyUtils" class="com.diligrp.website.util.format.MoneyUtils" />
-->
<bean id="velocityTools" class="java.util.HashMap">
<!--<constructor-arg>
<map>
<entry key="moneyUtils" value-ref="moneyUtils" />
<entry key="webUtils" value-ref="webUtils" />
<entry key="dateFormatUtils" value-ref="dateFormatUtils" />
</map>
</constructor-arg>-->
</bean>
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<mvc:exclude-mapping path="/mobsiteApp/outorder/user/**"/>
<mvc:exclude-mapping path="/mobsiteApp/outorder/order/**"/>
<mvc:exclude-mapping path="/mobsiteApp/market/**"/>
<mvc:exclude-mapping path="/mobsiteApp/topic/**"/>
<mvc:exclude-mapping path="/mobsiteApp/goods/**"/>
<mvc:exclude-mapping path="/mobsiteApp/version/**"/>
<mvc:exclude-mapping path="/mobsiteApp/common/**"/>
<mvc:exclude-mapping path="/mobsiteApp/priceIndex/**"/>
<!-- shop -->
<mvc:exclude-mapping path="/mobsiteApp/shop/getByKey.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getById.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getByDomain.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getDetailById.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getShopCategory.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getProducts.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getShopIntroduction.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getShopCredit.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getShopDetails.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getSaleShopList.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getLogisticsShopList.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getBuyOnOtherShopList.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getShopDetailNew.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getlogisticsShopMainPage.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/getShopBasicInfo.do"/>
<mvc:exclude-mapping path="/mobsiteApp/cart/getProductSaleInfo.do"/>
<mvc:exclude-mapping path="/mobsiteApp/cart/getSpotSaleInfo.do"/>
<mvc:exclude-mapping path="/mobsiteApp/service/getServices.do"/>
<mvc:exclude-mapping path="/mobsiteApp/service/getRemarkById.do"/>
<mvc:exclude-mapping path="/mobsiteApp/deviceInfo/saveDeviceInfo.do"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/uploadMessagePic.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/uploadAuthImage.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/login.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/logins.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/logout.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/checkUserInvalid.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/sendAuthCode.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/checkAuthCode.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/userRegister.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/userRegisters.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/checkUserInvalid.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/modifyPwd.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/checkAccountName.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/checkMobile.do"/>
<mvc:exclude-mapping path="/mobsiteApp/order/publishProductAppraise.do"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/getSystemTextSupply.do"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/getSystemPicSupply.do"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/getNoticeSupply.do"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/getMsgDetailById.do"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/getMsgList.do"/>
<mvc:exclude-mapping path="/mobsiteApp/common/getCity.do"/>
<mvc:exclude-mapping path="/mobsiteApp/common/getCountry.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/getRegisterNo.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/getRegisterNobyUids.do"/>
<mvc:exclude-mapping path="/mobsiteApp/stationMsg/getStationMsgList.do"/>
<!--暂时配置-->
<mvc:exclude-mapping path="/mobsiteApp/cart/getCartNum.do"/>
<!-- 卖家接口 -->
<mvc:exclude-mapping path="/mobsiteApp/seller/user/sellerLogin.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/vehicle/listLogisticsVehicle.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/vehicle/listLogisticsVehicleModels.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/vehicle/findLogisticsVehicleByModelId.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/line/listLogisticsLineMore.do"/>
<mvc:exclude-mapping path="/mobsiteApp/shop/line/listLogisticsLine.do"/>
<mvc:exclude-mapping path="/mobsiteApp/buyer/logistics/**"/>
<mvc:exclude-mapping path="/mobsiteApp/seller/logistics/**"/>
<mvc:exclude-mapping path="/mobsiteApp/user/getMemberList.do"/>
<mvc:exclude-mapping path="/mobsiteApp/market/getCitysByMarkets.do"/>
<mvc:exclude-mapping path="/mobsiteApp/market/getDeliveryMarketByCode.do"/>
<mvc:exclude-mapping path="/mobsiteApp/common/getFATlist.do"/>
<!-- 活动接口 -->
<mvc:exclude-mapping path="/mobsiteApp/activity/getHotActivities.do"/>
<mvc:exclude-mapping path="/mobsiteApp/activity/getActivityDetail.do"/>
<bean class="com.diligrp.mobsite.getway.web.filter.LoginTimeoutInterceptor"/>
</mvc:interceptor>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/uploadMessagePic.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/uploadAuthImage.do"/>
<!-- 上传文件 -->
<mvc:exclude-mapping path="/mobsiteApp/common/uploadImg.do"/>
<mvc:exclude-mapping path="/mobsiteApp/common/uploadAudio.do"/>
<mvc:exclude-mapping path="/mobsiteApp/common/uploadImgFullUrl.do"/>
<mvc:exclude-mapping path="/mobsiteApp/version/**"/>
<mvc:exclude-mapping path="/mobsiteApp/topic/getPicInfo.do"/>
<bean class="com.diligrp.mobsite.getway.web.filter.TokenInterceptor" />
</mvc:interceptor>
<!--
<mvc:interceptor>
<mvc:mapping path="/**"/>
<mvc:exclude-mapping path="/mobsiteApp/market/**"/>
<mvc:exclude-mapping path="/mobsiteApp/common/getCity.do"/>
<mvc:exclude-mapping path="/mobsiteApp/common/getCountry.do"/>
<mvc:exclude-mapping path="/mobsiteApp/supply/uploadMessagePic.do"/>
<mvc:exclude-mapping path="/mobsiteApp/user/uploadAuthImage.do"/>
<mvc:exclude-mapping path="/mobsiteApp/common/uploadFile.do"/>
<mvc:exclude-mapping path="/mobsiteApp/version/judgeAppVersion.do"/>
<mvc:exclude-mapping path="/mobsiteApp/version/feedback.do"/>
<mvc:exclude-mapping path="/mobsiteApp/topic/getPicInfo.do"/>
<bean class="com.diligrp.mobsite.getway.web.filter.TokenMarketInterceptor">
<property name="enabled" value="${project.interceptor.token.enabled}"/>
</bean>
</mvc:interceptor>
-->
<mvc:interceptor>
<mvc:mapping path="/mobsiteApp/outorder/order/**" />
<mvc:mapping path="/mobsiteApp/outorder/user/**"/>
<mvc:exclude-mapping path="/mobsiteApp/outorder/user/login.do"/>
<mvc:exclude-mapping path="/mobsiteApp/outorder/user/getGuradList.do"/>
<mvc:exclude-mapping path="/mobsiteApp/outorder/user/getGuradHistoryList.do"/>
<bean class="com.diligrp.mobsite.getway.web.filter.GuardLoginInterceptor"></bean>
</mvc:interceptor>
</mvc:interceptors>
</beans>