历史 | 登录     查看当前页的打印版本.  
问题详情 (XML | Word | Printable)

Key: EASYJWEB-18
类型: 问题 问题
状态: Resolved Resolved
解决: Fixed
优先级: Major Major
开发者: williamraym
报告人: easyjweb
投票: 0
关注人: 0
操作

复制 问题
创建 子任务
如果你是 登录 你不能看到更多操作.
easyjweb

无法加载初始化参数

创建: 23/十一月/07 12:22 下午   更新: 26/十一月/07 10:01 上午
模块:
影响版本:
修复版本:

环境: easyjweb1.0 jdk1.5


 描述  « Hide
easyjf-web.xml配置文件内容:

<?xml version="1.0" encoding="UTF-8"?>
<easyjf-web>
<framework-setting>
<property name="com.easyjweb.debug">false</property><!--调试模式,每次加载都会重新初始化EasyJWeb-->
<property name="com.easyjweb.maxUploadFileSize">51200</property><!--最大上传文件为51200kb-->
<property name="com.easyjweb.uploadSizeThreshold">512</property><!--上传文件缓存值-->
<property name="com.easyjweb.defaultActionPackages">com.easyjf.core,com.easyjf.security,com.easyjf.necton</property><!--设置自加Action扫描的路径-->
</framework-setting>
<!-- <import resource="classpath:/com/easyjf/core/setup.xml" /> -->
<import resource="mvc.xml" />
</easyjf-web>

按文档说<framework-setting>

 所有   备注   改动记录      排列顺序:
easyjweb - 23/十一月/07 12:23 下午
按文档说<framework-setting>是用来设置EasyJWeb系统参数的。但为什么我上面设置的参数无效。仍然可以上传一个10M的文件。

easyjweb - 23/十一月/07 12:26 下午
打开框架内置的com/easyjf/web/esyjf-web.xml,发现如下的内容:

<?xml version="1.0" encoding="UTF-8"?>
<easyjf-web xmlns="http://www.easyjf.com/schema/easyjf/web"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.easyjf.com/schema/easyjf/web http://www.easyjf.com/schema/easyjf/web/easyjf-web-0.0.1.xsd ">
<frame-setting></frame-setting>
<modules>
...</easyjf-web>

请问是用<frame-setting>还是<framework-setting>?

daxia - 23/十一月/07 12:34 下午
谢谢提交bug,此为笔误,当前已经调整。增加了对framework-setting及frame-setting两个标签的支持。framework-setting优先。

daxia - 26/十一月/07 10:01 上午
已解决