摘要: ?运算符 在java中,有时候为了避免出现空指针异常,我们通常需要这样的技巧: if(rs!=null){ rs.next() … … } 在groovy中,可以使用?操作符达到同样的目的: rs?.next() ?在这里是一个条件运算符,如果?前面的对象非null,执行后面的方法,否则什么也不做。 阅读全文
posted @ 2016-05-19 15:29 霓裳梦竹 阅读(2235) 评论(0) 推荐(0)
摘要: Moqui连接mysql数据库 各种数据库的连接文本: -- Derby<datasource group-name="transactional" database-conf-name="derby" schema-name="MOQUI"> <inline-jdbc pool-minsize=" 阅读全文
posted @ 2016-05-10 13:26 霓裳梦竹 阅读(1091) 评论(0) 推荐(0)
摘要: Atlassian ID has become the new Atlassian Account. Read more about it here. After some great community feedback, we are releasing SourceTree for Mac 1 阅读全文
posted @ 2016-05-09 16:32 霓裳梦竹 阅读(479) 评论(0) 推荐(0)
摘要: 1. 下载安装包 进入 JetBrains 官网,http://www.jetbrains.com/idea/download/#tabs_1=windows, 从Ultimate下载企业版 IntelliJ IDEA15 安装包, ideaIU-15.0.1.exe如下图 进入 Oracle 官网 阅读全文
posted @ 2016-05-09 16:01 霓裳梦竹 阅读(633) 评论(0) 推荐(0)
摘要: /** Get a service caller to call a service synchronously. */ //ServiceCallSync sync(); /** Map of name, value pairs that make up the context (in parameters) passed to the servic... 阅读全文
posted @ 2016-05-09 15:58 霓裳梦竹 阅读(234) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-05-09 10:43 霓裳梦竹 阅读(288) 评论(0) 推荐(0)
摘要: annotation:注释 注解 documentation:文件 证明文件 embed:嵌入 context:环境 上下文 explicity: 明确的 明白的 conversion: 转化 阅读全文
posted @ 2016-05-09 10:42 霓裳梦竹 阅读(161) 评论(0) 推荐(0)
摘要: 这是刚开始时进入的界面,从这里可以看出他所需要的输入参数和输出参数: 这是定义输入参数的代码,与页面对应。 这是定义输出参数的代码,与页面对应。 从actions中的代码可以看出他是调用的另一个service的方法:即mantle.product.PriceServices,find#Product 阅读全文
posted @ 2016-05-09 10:06 霓裳梦竹 阅读(364) 评论(0) 推荐(0)
摘要: 1. Groovy : Groovy Console The Groovy Swing Console allows a user to enter and run Groovy scripts. This page documents the features of this user inter 阅读全文
posted @ 2016-05-09 08:56 霓裳梦竹 阅读(1021) 评论(0) 推荐(0)
摘要: 假设现有customer.xml 文件内容如下: 使用Grovvy语言输出所有的“corporate”客户的名称和公司: 输出结果为: Bill works for Microsoft Steve Jobs works for Apple Jonathan Schwarts works for Su 阅读全文
posted @ 2016-05-09 08:44 霓裳梦竹 阅读(603) 评论(0) 推荐(0)
摘要: HiveMind is a comprehensive ERP application for service organizations. It includes a project management application featuring project/task, request, a 阅读全文
posted @ 2016-05-06 17:23 霓裳梦竹 阅读(324) 评论(0) 推荐(0)
摘要: 注意:固定变量使用大写编写 for语句: 循环处理列表: 循环处理映射: 循环处理字符串: if判断: switch: switch和范围: List和case: 参数化的闭包: 单个隐参数: 其中的${it}中的it代表iterator 条件元素: any和every: collect方法: co 阅读全文
posted @ 2016-05-06 16:48 霓裳梦竹 阅读(311) 评论(0) 推荐(0)
摘要: This post would look into how to tackle and debug issues in scenarios where they only occur in production (or other remote environment) but not in dev 阅读全文
posted @ 2016-05-06 13:11 霓裳梦竹 阅读(525) 评论(0) 推荐(0)
摘要: 资源位置: 资源门面位置的字符串类似于URL的构成方式:协议,主机,可选端口和文件名。它支持标准的java URL协议(http https ftp jar file).同样也支持一些扩展的协议: classpath:// java类路径的资源 content://内容仓库的资源(JCR 经由Jac 阅读全文
posted @ 2016-05-05 17:19 霓裳梦竹 阅读(1193) 评论(0) 推荐(0)
摘要: 添加一个新建表单 添加一个按钮来弹出新建表单,并创建一个转换来处理输入数据操作。 在FindTutorial.xml文件中添加一个转换。 <!--新增 列表 --> <transition> <service-call name="create#Tutorial"/> <default-respon 阅读全文
posted @ 2016-05-05 16:43 霓裳梦竹 阅读(532) 评论(0) 推荐(0)
摘要: DK1.5引入了新的类型——枚举。在 Java 中它虽然算个“小”功能,却给我的开发带来了“大”方便。 用法一:常量 在JDK1.5 之前,我们定义常量都是: publicstaticfianl.... 。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型里,而且枚举提供了比常量更多的方法。 J 阅读全文
posted @ 2016-04-29 17:48 霓裳梦竹 阅读(278) 评论(0) 推荐(0)
摘要: 添加一个新建表单 添加一个按钮来弹出新建表单,并创建一个转换来处理输入数据操作。 在FindTutorial.xml文件中添加一个转换。 <!--新增 列表 --> <transition> <service-call name="create#Tutorial"/> <default-respon 阅读全文
posted @ 2016-04-29 16:21 霓裳梦竹 阅读(429) 评论(0) 推荐(0)
摘要: 用户 本地化 消息和日志门面 用户门面用于管理当前用户和访问,登陆,授权及登出的信息。用户信息包括区域设置,时区以及币种/ec.user.nowTimestamp设置日期。 消息门面用于追踪用户的消息以及错误信息。错误消息列表ec.message.errors同样用于确定在一个服务调用或其他动作中是 阅读全文
posted @ 2016-04-29 15:54 霓裳梦竹 阅读(772) 评论(0) 推荐(0)
摘要: 运行时目录以及Moqui的xml配置文件 Moqui框架部署运行主要有三个核心部分: 可执行的war包文件 运行时目录 Moqui配置文件XML格式 不管怎么使用这个可执行的war文件,你必须拥有一个运行时的目录,同时你也许会重写Moqui默认配置文件MoquiDefaultConf.xml里的配置 阅读全文
posted @ 2016-04-29 15:45 霓裳梦竹 阅读(2276) 评论(1) 推荐(0)
摘要: 1.Groovy和Java对比 Groovy的松散的语法允许省略分号和修饰符 除非另行指定,Grovvy的所有内容都为public Grovvy允许定义简单脚本,同时无需定义正规的class对象 Grovvy在普通的常用java对象上增加了一些独特的方法和快捷方式,使得他们更容易使用 Grovvy语 阅读全文
posted @ 2016-04-29 11:31 霓裳梦竹 阅读(1229) 评论(0) 推荐(0)