`
文章列表
<?xml version="1.0" encoding="utf-8"?> <sphinx:docset> <sphinx:schema> <sphinx:field name="subject"/> //索引的类容<sphinx:field name="content"/> //索引的类容<sphinx:attr name="published" type="timesta ...
一定要安装mysql,否则不会成功的。 wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8-rc2.tar.gz tar -xvzf sphinx-0.9.8-rc2.tar.gz cd sphinx-0.9.8-rc2 ./configure --prefix=/usr/local/sphinx --with-mysql=/usr/local/mysql make make install 安装完毕后查看一下/usr/local/sphinx下是否有 三个目录 bin etc var,如有,则安装无误! ...
1.request.getRealPath("/")方法已过期 替代方法 request.getSession().getServletContext().getRealPath("/")
1.实现接口:ServletRequestAware 2.重写方法:public void setServletRequest(HttpServletRequest request){                 this.request = request;                         }   3.定义类型:private HttpServletRequest request;

修改默认编码

1、需要以 root 用户身份登陆才可以查看数据库编码方式(以 root 用户身份登陆的命令 为:>mysql -u root –p,之后两次输入 root 用户的密码),查看数据库的编码方式命令为: >show variables like 'character%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character ...
Global site tag (gtag.js) - Google Analytics