package com.hyy.action;import org.apache.struts2.convention.annotation.Action;import com.opensymphony.xwork2.ActionSupport;public class HelloWorldTest...
分类:
其他好文 时间:
2014-08-08 12:24:55
阅读次数:
176
刚刚查阅官方文档(convention-plugin.html)并学习了Struts2的Convention插件,文章这里只作为一个笔记,建议大家去看官方文档比较清晰和全面。需要在项目添加这些包convention先找package,其中如果package包含action这个单词,就会将这个包作为根...
分类:
其他好文 时间:
2014-08-08 12:07:05
阅读次数:
170
1 package com.hyy.action; 2 3 import com.opensymphony.xwork2.ActionSupport; 4 5 public class HelloWorld extends ActionSupport{ 6 private String...
分类:
Web程序 时间:
2014-08-08 12:00:05
阅读次数:
168
一、什么是Grails?
Grails is an Open Source, full stack, web application framework for the JVM. It takes advantage of the Groovy programming language and convention over configuration to provide a producti...
分类:
其他好文 时间:
2014-07-19 23:18:40
阅读次数:
240
There’s a convention on how to name a method, which is to be considered the constructor of the class. Classes inherit from other classes. There’s acce...
分类:
编程语言 时间:
2014-07-17 12:54:15
阅读次数:
255
struts2-convention-plugin 简化了Strut2配置过程,摸索中。。。。...
分类:
编程语言 时间:
2014-07-16 11:10:41
阅读次数:
407
需要包 struts2-convention-plugin.jar@Namespace("/xxxx/zzz")public class ConnectionAction { /** Action执行方法* */ @Action(value = "ConnectManage", resu...
分类:
其他好文 时间:
2014-07-09 23:47:34
阅读次数:
241
在项目中定义了以new开头的textField,结果报错:
先看我的源码:#import
@interface ResetPasswordViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITextField *phoneTextField;
@property (weak, nonatomic) ...
分类:
其他好文 时间:
2014-07-09 12:09:41
阅读次数:
208
出现这种情况,主要是属性名中包含 关键字.
You can solve this by:
Renaming that property:
@property (strong, nonatomic) NSString *theNewTitle;
Keeping the property name and specifying a getter name th...
分类:
其他好文 时间:
2014-07-09 10:30:12
阅读次数:
218
从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行配置,甚至不需要使用Annotat...
分类:
其他好文 时间:
2014-07-05 19:04:19
阅读次数:
135