打开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] "/>