XPlanner中文版安装步骤


必要的软件环境:
   1. jdk 1.4.2
   2. a servlet 2.4 compatible container (i.e. tomcat 5.0.x)
   3. a sql database (i.e. mysql 4.1.x)

我的经验:
Tomcat 5.5.12好像只能用这个版本,用过6.0会有jasper操作死机,版本太低好像也不行,建议用这个版本 
MySQL 5.0以下版本都可以 
jdk 1.4以上没有问题 

安装步骤:
Mysql

1: 新增数据库,编码为GBK 

  1. CREATE DATABASE `xplanner` DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;


2:创建用户

  1. GRANT ALL PRIVILEGES ON xplanner.* TO 'xplanner'@'localhost' IDENTIFIED BY 'xp' WITH GRANT OPTION;


XPlanner目录下

3: 更改xplanner-custom.properties 或 xplanner.properties 配置Hibernate

  1. # Hibernate MySQL Configuration
  2. hibernate.dialect=com.technoetic.xplanner.db.hibernate.XPlannerMySQLDialect
  3. hibernate.connection.driver_class=com.mysql.jdbc.Driver
  4. hibernate.connection.dbname=xplanner
  5. hibernate.connection.url=jdbc:mysql://localhost/xplanner?autoReconnect=true&useUnicode=true&characterEncoding=GBK
  6. hibernate.connection.username=xplanner
  7. hibernate.connection.password=xp
  8. xplanner.migration.databasetype=mysql
  9. xplanner.migration.patchpath=patches:com.technoetic.xplanner.upgrade:com.technoetic.xplanner.security.install

 

5:创建MySQL表格

ant  install.db.hibernate.schema 


6:汉化问题:
把汉化文件ResourceBundle.properties(如果需要请发信给我zanhua.guo@hotmail.com)覆盖到xplanner/WEB-INF/classes目录下。

 

7: 修改web-inf/classes目录下的spring-beans.xml文件。

替换内容 1. Open /xplanner/WEB-INF/classes/sbring-beans.xml 2. Find the bean id="metaRepository" 3. Replace ...... with .....

  1. <property name="repositories">
  2. <bean class="java.util.HashMap">
  3. <constructor-arg>
  4. <map>.....</map>
  5. </constructor-arg>
  6. </bean>
  7. </property>

8. 启动tomcat



  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值