- 浏览: 93423 次
- 性别:
- 来自: 长沙
-
最新评论
-
maxrocray:
两种方式: 1. 配置indexmapping. 这样可以为每 ...
Elasticsearch 10版本插件安装 -
rmn190:
请问下, 用mongo river导数据时, 中文分词成功没? ...
Elasticsearch 10版本插件安装
文章列表
1. kill the process
killall ibus-daemon
2. start the process
ibus-daemon -d
*
CENTOS 6.0 开放端口
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables save
查看打开的端口:
/etc/init.d/iptables status
#关闭防火墙
/etc/init.d/iptables stop
service iptables stop # 停止服务
#restart
/etc ...
写了个公共方法,用新对象中非NULL属性值去取代老对象中的同名属性值,备忘。
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class Test
{
/**
* @param args
*/
public static void main(String[] args)
{
User user1 = new User();
User user2 = new User();
user2.setAge(222);
user2.setNum ...
struts 2、sitemesh、urlrewrite configuration sequence should be like below:
1.struts-cleanup:
2.sitemesh
3.UrlRewriteFilter This should be after sitemesh,or the pages after rewrote can not be renderred by sitemesh.
4.struts2 FilterDispatcher
There are six types of maintenance operations that mark index partitions INDEX
UNUSABLE (IU). Solution Explanation:
Maintenance operations causing index partitions to become INDEX UNUSABLE (IU):
1. IMPORT PARTITION or conventional path SQL*Loader.
2. Direct-path SQL*Loader leaves af ...
鉴于Spring3.0不采用Servlet启动,改用listener,并且针对Mysql与DBCP连接池在linux服务器上超时连接的Bug,现简要地做Spring3与Proxool连接池的配置:
1.Web.xml配置:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan ...
Spring3.1, Hibernate3.6,Lucene3.0.3以及IKAnalyzer3.2.3, 数据库采用Mysql,连接池采用dbcp.主要Jar如下:
Spring重要Bean配置:
<!--配置定时任务 -->
<bean id="bagnetTask"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject& ...