当前位置:网站首页>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
边栏推荐
- Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
- Chapter 14 class part 1
- Functional modules and application scenarios covered by the productization of user portraits
- What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
- C language to implement a password manager (under update)
- B2020 points candy
- 4-33--4-35
- 【Transform】【NLP】首次提出Transformer,Google Brain团队2017年论文《Attention is all you need》
- NOI OPENJUDGE 1.3(06)
- Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
[ue4] cascading shadow CSM
Byte practice plane longitude 2
运维体系的构建
5-1 blocking / non blocking, synchronous / asynchronous
[engine development] in depth GPU and rendering optimization (basic)
[ue4] material and shader permutation
链表有环,快慢指针走3步可以吗
【可能是全中文网最全】pushgateway入门笔记
Tencent internship interview sorting
[graphics] efficient target deformation animation based on OpenGL es 3.0
随机推荐
链表有环,快慢指针走3步可以吗
[opengl] advanced chapter of texture - principle of flowmap
Yolov5进阶之七目标追踪最新环境搭建(二)
C language memory function
[graphics] adaptive shadow map
Open under vs2019 UI file QT designer flash back problem
Yolov5进阶之九 目标追踪实例1
CentOS7部署哨兵Redis(带架构图,清晰易懂)
Mmdetection learning rate and batch_ Size relationship
There are links in the linked list. Can you walk three steps faster or slower
[wechat applet] wxss template style
Troubleshooting method of CPU surge
[opengl] face pinching system
Global and Chinese markets for indoor HDTV antennas 2022-2028: Research Report on technology, participants, trends, market size and share
The latest M1 dedicated Au update Adobe audit CC 2021 Chinese direct installation version has solved the problems of M1 installation without flash back!
Zzuli:1059 highest score
解决pushgateway数据多次推送会覆盖的问题
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
Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
Tensor 省略号(三个点)切片