随笔分类 -  SpringRoo

开发脚手架
摘要:roo> solr setup向工程添加solr支持~.Person roo> solr add 通过AOP为Person类添加支持全文索引的方法privileged aspect Person_Roo_SolrSearch { @Autowired transient SolrServer Person.solrServer;//简单查询 public static QueryResponse Person.search(String queryString) { return search(new SolrQuery("person.solr... 阅读全文
posted @ 2012-01-19 17:02 HelloCoding 阅读(480) 评论(0) 推荐(0)
摘要:a. 比较 addon simple 和addon advanced区别 addon simple 只有两个相关点,一个command ,一个operation,简单说就是提供命令,还有命令对应的操作,利用roo提供的工具类完成对应操作。b.Roo核心各部分关系c.主要模块功能:Support— Theorg.springframework.roo.supportmodule provides common utility classes used by all the core modules and add-ons. Some utility classes includeAssert,F 阅读全文
posted @ 2012-01-19 17:02 HelloCoding 阅读(204) 评论(0) 推荐(0)
摘要:1、spring roo 默认语言如何设置参见 Roo默认语言调试将\src\main\webapp\WEB-INF\i18n\messages.properties中得内容和messages_cn中得内容替换,另外新建一个messages_en.properties就一切正常了.之前给出的答案错了,请谅解.测试时没有清空缓存.2、entity 中的field如何设置默认值 by Jimmy默认值 --value 设置field属性 一直tab value 比较可能,试了试就是他 阅读全文
posted @ 2012-01-19 17:01 HelloCoding 阅读(169) 评论(0) 推荐(0)
摘要:原因:IDE开发中,对于实体包类的引用超过几个,会自动变成*(例如 import com.entity.*;)roo无法正确识别, 会报 Unable to obtain physical type metdata for XX类,解决:将工程中对实体类的引用的*,换成具体类名 阅读全文
posted @ 2012-01-19 16:53 HelloCoding 阅读(244) 评论(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 阅读(387) 评论(0) 推荐(0)