当前位置:网站首页>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
边栏推荐
- [transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
- [pytorch learning notes] transforms
- NOI OPENJUDGE 1.3(06)
- C language memory function
- B2020 分糖果
- [Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
- [pytorch learning notes] datasets and dataloaders
- Incluxdb2 buckets create database
- High quality workplace human beings must use software to recommend, and you certainly don't know the last one
- QT program font becomes larger on computers with different resolutions, overflowing controls
猜你喜欢
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Byte practice plane longitude 2
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
C language DUP function
PS tips - draw green earth with a brush
[graphics] adaptive shadow map
Pytoch deep learning and target detection practice notes
[pytorch learning notes] datasets and dataloaders
【Transformer】入门篇-哈佛Harvard NLP的原作者在2018年初以逐行实现的形式呈现了论文The Annotated Transformer
cpu飙升排查方法
随机推荐
Global and Chinese market of air cargo logistics 2022-2028: Research Report on technology, participants, trends, market size and share
Influxdb2 sources add data sources
[graphics] hair simulation in tressfx
B2020 分糖果
Zzuli:1056 lucky numbers
NOI OPENJUDGE 1.4(15)
Chapter 14 class part 1
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
mmdetection 学习率与batch_size关系
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
5.4-5.5
Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
【可能是全中文网最全】pushgateway入门笔记
4-29——4.32
[graphics] efficient target deformation animation based on OpenGL es 3.0
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
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
ASTC texture compression (adaptive scalable texture compression)
[engine development] in depth GPU and rendering optimization (basic)
远程服务器后台挂起 nohup