liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
<?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:p="http://www.springframework.org/schema/p"
    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-4.0.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-4.0.xsd
        http://www.springframework.org/schema/tx
        http://www.springframework.org/schema/tx/spring-tx-4.0.xsd">
        
    <!-- 启动bean, 必须实现 framework.startup.FrameStartBean 接口 -->
    <bean id="initMenu" class="com.basic.x01.systemMenu.InitMenu" />
 
    <!-- 加载完后执行启动类 -->
    <bean class="framework.startup.FrameStartup">
        <!-- 文件上传路径 -->
        <property name="uploadPath" value="WEB-INF/upload" />
        
        <!-- 文件下载临时目录 -->
        <property name="downloadPath" value="WEB-INF/download" />
        
        <!-- value=启动 bean id, 多个用英文逗号分隔-->
        <property name="startBean" 
            value="initMenu" />
    </bean>
    
    <!-- filter, 与 web.xml 中配合使用 -->
    <bean name="menuFilter" class="com.basic.x01.systemMenu.MenuFilter">
        <property name="exceptSuffix" 
        value="jsp/html/htm/js/css/
            jpg/jpeg/png/gif/
            doc/docx/ppt/pptx/xls/xlsx" />
    </bean>
</beans>