当前位置:网站首页>XWiki安装使用技巧
XWiki安装使用技巧
2022-07-03 15:04:00 【星哥玩云】
XWiki安装使用技巧小贴士:
1. 运行{%XWIKI_HOME%}中的start_xwiki.bat 基本的下载安装就是这样,剩下的是配置XWiki的中文语言支持
2. webapps\xwiki\WEB-INF目录下的web.xml,修改Character Encoding,例如 <filter> <filter-name>Set Character Encoding</filter-name> <filter-class>com.xpn.xwiki.web.SetCharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter>
3. \webapps\xwiki\WEB-INF目录下的xwiki.cfg,修改 xwiki.encoding = UTF-8
4. \webapps\xwiki\WEB-INF目录下的Hibernate的配置文件hibernate.cfg.xml的修改,增加如下两个property <property name="connection.useUnicode">true</property> <property name="connection.characterEncoding">UTF-8</property>
5. {%XWIKI_HOME%}下的start_xwiki.bat的修改 set LANG=en_US.UTF-8 Java %JAVA_OPTS% -Dfile.encoding=UTF-8 -Djetty.home=%JETTY_HOME% -Djetty.port=%JETTY_PORT% -jar %JETTY_HOME%/start.jar 上面这两句原本的UTF-8为ISO-8859-1,都改成UTF-8就好了
OK,重启start_xwiki.bat就可以编辑和保存中文了 发现的问题:写新blog或者增加新页面的时候title部分如果以中文开头是有问题的,数据库连接会出问题,不过这个问题好解决,我前面加个英文单词或 字母就没问题了,等回头再看一下到底是哪里的问题。还有就是如果页面中要贴代码,尤其是有尖括号这种特殊符号的时候,应该在编辑页面右侧的Page Syntax选为XWiki 2.0,否则它会过滤掉这些特殊符号。
6.修改中文界面:xwiki administrator ->localization->lanaguage 修改en 为ch
边栏推荐
- [engine development] rendering architecture and advanced graphics programming
- Yolov5进阶之九 目标追踪实例1
- [wechat applet] wxss template style
- Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
- C language STR function
- Class part2
- cpu飙升排查方法
- NOI OPENJUDGE 1.6(09)
- Several sentences extracted from the book "leather bag"
- C language DUP function
猜你喜欢
![[ue4] Niagara's indirect draw](/img/8a/576022b5d19e1d6422ff0135c50c93.jpg)
[ue4] Niagara's indirect draw

零拷贝底层剖析

CentOS7部署哨兵Redis(带架构图,清晰易懂)

创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03

基础SQL教程

Open under vs2019 UI file QT designer flash back problem

【微信小程序】WXSS 模板样式

On MEM series functions of C language

Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)

4-24--4-28
随机推荐
C language fcntl function
2022/02/14
SQL server安装位置改不了
官网MapReduce实例代码详细批注
【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
Yolov5进阶之九 目标追踪实例1
Remote server background hangs nohup
创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
Byte practice surface longitude
2021-10-16 initial programming
Yolov5系列(一)——网络可视化工具netron
复合类型(自定义类型)
QT - draw something else
[opengl] geometry shader
4-29——4.32
Yolov5 advanced 8 format conversion between high and low versions
Write a 2-minute countdown.
C language dup2 function
Leetcode the smallest number of the rotation array of the offer of the sword (11)