当前位置:网站首页>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
边栏推荐
- PHP GD image upload bypass
- 链表有环,快慢指针走3步可以吗
- C string format (decimal point retention / decimal conversion, etc.)
- Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
- Finally, someone explained the financial risk management clearly
- Fundamentals of PHP deserialization
- [ue4] HISM large scale vegetation rendering solution
- 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
- 什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
- Yolov5系列(一)——网络可视化工具netron
猜你喜欢

Open under vs2019 UI file QT designer flash back problem

Vs+qt application development, set software icon icon

【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer

解决pushgateway数据多次推送会覆盖的问题
![[graphics] real shading in Unreal Engine 4](/img/8d/53775c7570c5578f4fe985592bb305.jpg)
[graphics] real shading in Unreal Engine 4
![[ue4] Niagara's indirect draw](/img/8a/576022b5d19e1d6422ff0135c50c93.jpg)
[ue4] Niagara's indirect draw

el-switch 赋值后状态不变化

5-1 blocking / non blocking, synchronous / asynchronous

Devaxpress: range selection control rangecontrol uses

The picture quality has been improved! LR enhancement details_ Lightroom turns on AI photo detail enhancement: picture clarity increases by 30%
随机推荐
Center and drag linked global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
C language to implement a password manager (under update)
Awvs batch operation script
Pytorch深度学习和目标检测实战笔记
B2020 分糖果
Qt development - scrolling digital selector commonly used in embedded system
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
【Transform】【实践】使用Pytorch的torch.nn.MultiheadAttention来实现self-attention
Finally, someone explained the financial risk management clearly
Yolov5系列(一)——网络可视化工具netron
Byte practice plane longitude 2
[graphics] adaptive shadow map
NOI OPENJUDGE 1.5(23)
Global and Chinese market of solder bars 2022-2028: Research Report on technology, participants, trends, market size and share
Yolov5 advanced 8 format conversion between high and low versions
Global and Chinese market of lighting control components 2022-2028: Research Report on technology, participants, trends, market size and share
[set theory] inclusion exclusion principle (complex example)
[ue4] cascading shadow CSM
Vs+qt application development, set software icon icon
Pytoch deep learning and target detection practice notes