摘要: 原因:IDE开发中,对于实体包类的引用超过几个,会自动变成*(例如 import com.entity.*;)roo无法正确识别, 会报 Unable to obtain physical type metdata for XX类,解决:将工程中对实体类的引用的*,换成具体类名 阅读全文
posted @ 2012-01-19 16:53 HelloCoding 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 配置文件中已配置IK分词器,与分词器关联类型为text除将subject配置为<uniqueKey>subject</uniqueKey> (必须为solr.StrField类型,所以配置为string)<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>配置详情:<fieldType name="text" class=" 阅读全文
posted @ 2012-01-19 16:43 HelloCoding 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 如果没有使用maven:solrj3.4要导入以下jar包到classpath使用maven比较简单 <dependency> <artifactId>solr-solrj</artifactId> <groupId>org.apache.solr</groupId> <version>3.4.0</version> <type>jar</type> <scope>compile</scope> </dependency>以上所有jar包可以... 阅读全文
posted @ 2012-01-19 16:42 HelloCoding 阅读(249) 评论(0) 推荐(0) 编辑
摘要: A.Linux环境1、将example/solr下的内容拷贝到/opt/solr/example(下文用$SOLR_HOME代替),将example/webapps/solr.war拷贝到$SOLR_HOME2、编辑$SOLR_HOME/conf/solrconfig.xml,修改dataDir<dataDir>${solr.data.dir:/opt/solr/example/data}</dataDir>或者可以修改tomcat的启动脚本exportJAVA_OPTS="$JAVA_OPTS-Dsolr.data.dir=/opt/solr/example 阅读全文
posted @ 2012-01-19 16:42 HelloCoding 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 将附件中的IKAnalyzer.cfg.xml内容更改,指向扩展自定义扩展词典的位置<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment>IK Analyzer 扩展配置</comment><!--用户可以在这里配置自己的扩展字典<entry key=" 阅读全文
posted @ 2012-01-19 16:41 HelloCoding 阅读(1343) 评论(0) 推荐(0) 编辑
摘要: java -jar post.jar *.xml java -Ddata=args -jar post.jar '<delete><id>42</id></delete>' java -Ddata=stdin -jar post.jar < hd.xml java -Durl=http://localhost:8983/solr/update/csv -Dtype=text/csv -jar post.jar*.csv java -Durl=http://localhost:8983/solr/update/json -Dt 阅读全文
posted @ 2012-01-19 16:41 HelloCoding 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: Vaadin Plugin for Spring RooSpring Roo is a lightweight developer tool that makes it fast and easy to deliver instant results. Best of all, you code 100% in Java and get to reuse all your existing Java knowledge, skills and experience.注意:vaadin目前只支持SpringRoo1.1.5,Install SpringSource Tool Suite (STS 阅读全文
posted @ 2012-01-19 16:38 HelloCoding 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: vaadin应用程序的开发类似于桌面应用的开发。5分钟教程:首先要有一个主程序入口(继承com.Vaadin.Application),实现init方法(类似main方法)代码示例: import com.Vaadin.Application; import com.Vaadin.ui.*; public class Dw_Vaadin_projectApplication extends com.Vaadin.Application { public void init() { /*... 创建主窗口 ...*/ Window main = new Window(... 阅读全文
posted @ 2012-01-19 16:36 HelloCoding 阅读(1868) 评论(0) 推荐(0) 编辑
摘要: CasServer配置:1.用keytool 生成 CasServer 所在主机的证书(keystore),并导出(crt文件)。2.配置Tomcat server.xml 指明证书位置CasClient配置:将CasServer所在主机证书导入CasClient主机jre的受信目录Casclient应用导入依赖文件。配置web.xml,添加过滤器注意:web.xml 请求地址的配置。web.xml 配置:<!-- ======================== 单点登录开始 ======================== --><listener><list 阅读全文
posted @ 2012-01-19 16:35 HelloCoding 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Debugging Roo addon is like debugging remote Java application. Get Roo source code from Roo Git repositoryCompile it with 'mvn clean install'Open the file '%ROO_HOME%\bootstrap\roo-dev.bat' in your favorite text editorAdd the following line somewhere above the line 'rem Hop, hop, 阅读全文
posted @ 2012-01-19 16:31 HelloCoding 阅读(333) 评论(0) 推荐(0) 编辑