resin3.1配置心得

本文档详细介绍了Resin 3.1.6的配置过程,包括URL中文参数获取、数据库连接池设置、web工程配置、在MyEclipse中添加Resin服务器的步骤,以及附带的中文配置说明。
摘要由CSDN通过智能技术生成

 打开D:/resinnew/resin-3.1.6/conf/resin.conf,配置文件

1.URL中文参数获取:

    找到:<character-encoding>utf-8</character-encoding>,在注释下方加上:<character-encoding>iso8859-1</character-encoding>

以上方法可解决url中文参数获取不了的问题。

2.数据源配置(数据库连接池):

<database>
           <jndi-name>jdbc/oracle</jndi-name>
           <driver type="oracle.jdbc.driver.OracleDriver">
             <url>jdbc:oracle:thin:@192.168.0.21:1521:ora9i</url>
             <user>goodsres_v3</user>
             <password>123456</password>           
            </driver>
            <max-connections>20</max-connections>
            <max-idle-time>30s</max-idle-time> 
            <prepared-statement-cache-size>8</prepared-statement-cache-size>
        </database>

3.web工程配置:

 <web-app id="/" root-directory="webapps/ROOT"/>
   <web-app id="/searchIndex" document-directory="D:/resinnew/resin-3.1.6/deploy/searchIndex"/>
      <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">

4.在myeclipse中添加resin服务器,默认工程解析到D:/resinnew/resin-3.1.6/deploy/目录下

5.另附上中文配置说明(转载):

<!-- - Resin 3.1 配置文件. -->
<resin xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core">
<!-- 加载resin/lib下的所有.jar文件-->
<class-loader>
<tree-loader path="${resin.home}/lib"/>
<tree-loader path="${resin.root}/lib"/>
</class-loader>
<!-- - 管理配置 -->
<management path="${resin.root}/admin">
</management>
<!-- -JDK日志接口的配置. -->
<log name="" path="stdout:" timestamp="[%H:%M:%S.%s] "/>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值