spring-error.xml
3.65 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
<?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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
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/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- gateway 错误码 -->
<bean id="gatewayErrorMap" class="org.springframework.beans.factory.config.YamlMapFactoryBean">
<property name="resources">
<list>
<value>classpath:gateway-error.yml</value>
<value>classpath:erp/erp-gateway-error.yml</value>
</list>
</property>
</bean>
<!-- 服务内部 错误码 -->
<bean id="serviceErrorMap" class="org.springframework.beans.factory.config.YamlMapFactoryBean">
<property name="resources">
<list>
<value>classpath:service-error.yml</value>
<value>classpath:service-error-common.yml</value>
<value>classpath:service-error-product.yml</value>
<value>classpath:service-error-resources.yml</value>
<value>classpath:service-error-orders.yml</value>
<value>classpath:service-error-sns.yml</value>
<value>classpath:service-error-user.yml</value>
<value>classpath:service-error-message.yml</value>
<value>classpath:service-error-promotion.yml</value>
<value>classpath:service-error-shopping.yml</value>
<value>classpath:service-error-union.yml</value>
<value>classpath:service-error-shops.yml</value>
<value>classpath:service-error-social.yml</value>
<value>classpath:service-error-wechat.yml</value>
<value>classpath:service-error-globalbuy.yml</value>
<!-- ERP BEGIN -->
<value>classpath:erp/erp-service-error.yml</value>
<value>classpath:erp/erp-service-error-bms.yml</value>
<value>classpath:erp/erp-service-error-dashboard.yml</value>
<value>classpath:erp/erp-service-error-fms.yml</value>
<value>classpath:erp/erp-service-error-webService.yml</value>
<value>classpath:erp/erp-service-error-job.yml</value>
<value>classpath:erp/erp-service-error-order.yml</value>
<value>classpath:erp/erp-service-error-pop.yml</value>
<value>classpath:erp/erp-service-error-stock.yml</value>
<value>classpath:erp/erp-service-error-wms.yml</value>
<value>classpath:erp/erp-service-error-tickets.yml</value>
<value>classpath:erp/erp-service-error-invoice.yml</value>
<value>classpath:erp/erp-service-error-ams.yml</value>
<value>classpath:erp/erp-service-error-printer.yml</value>
<value>classpath:erp/erp-service-error-cs.yml</value>
<!-- ERP END -->
</list>
</property>
</bean>
<bean id="configLoader" class="com.yoho.error.internel.ConfigLoader" init-method="init">
<property name="gatewayErrorMap" ref="gatewayErrorMap"/>
<property name="serviceErrorMap" ref="serviceErrorMap" />
</bean>
</beans>