问题原因:忘记写@Resource;由此而知:可能是service没有引进去。全部错误代码:22:33:17,883 DEBUG SessionImpl:243 - Opened session at timestamp: 1430836397822:34:11,470 ERROR AdminCon...
分类:
编程语言 时间:
2015-05-06 01:09:58
阅读次数:
210
VCD分解分为三部分:1. view 视觉 HTML + CSS 基本界面模板2. controller 控制 javascript 内容处理 事件处理3. data 数据 data.js 非必须 助于理解
分类:
Web程序 时间:
2015-05-06 01:06:32
阅读次数:
129
info.plist文件中,View controller-based status bar appearance项设为YES,则View controller对status bar的设置优先级高于application的设置。为NO则以application的设置为准,view controlle...
分类:
移动开发 时间:
2015-05-05 14:09:41
阅读次数:
168
一、HttpContext概述1)、如何获取对象:在WebForm或类库(包括MVC)项目中,通过Current静态属性,就能够获得HttpContext的对象: HttpContext context = HttpContext.Current;如果是在Asp.net MVC的Controller...
分类:
Web程序 时间:
2015-05-05 10:09:53
阅读次数:
121
今天这篇博客给大家带来基于注解的springMVC开发,大家之前有没有想过一个问题,就是我们之前基于配置文件配置写出来的那些Controller只能默认处理一个方法,那么我如果想像structs2那样子来让一个Controller可以处理多个请求,对于不同的请求,跳转进不同的方法来做处理,这样是极好的,springMVC基于注解的开发,就可以完成上边的这些需求,下面我们看一个例子。添加jar文件首先...
分类:
编程语言 时间:
2015-05-05 08:56:13
阅读次数:
154
1.默认tomcat容器的默认页面。
/index.html
这种方式适合访问静态的页面(也包括JSP)或者说是没有任何参数的页面。2.spirng mvc 默认index controller 方式
如果在tomcat容器没有配置默认页面,怎spring mvc 会主动去寻找/index的controller,如果有则会调用,没有则会显示404页面。
@RequestMap...
分类:
编程语言 时间:
2015-05-04 22:09:15
阅读次数:
121
一. 连贯入门查找到 id 为 1,2,3,4 中按照创建时间的倒序的前两位。在Home/controller/UserController.class.php下插入 1、连贯操作入门$user = M('User');var_dump($user->where('id in (1,2,3,4).....
分类:
数据库 时间:
2015-05-04 19:42:44
阅读次数:
92
一、快捷查询快捷查询方式是一种多字段查询的简化写法,在多个字段之间用'|'隔开表示OR,用'&'隔开表示 AND。1.不同字段相同查询条件在Home/controller/UserController.class.php 中插入//使用相同查询条件$user = M('User');$map['u....
分类:
数据库 时间:
2015-05-04 17:43:59
阅读次数:
135
superman weight 解释: directive 中的controller放一些公共部分 require : 通过require让多个指令共享controller中的数据 ^ 允许从父类开始查找 require:"^superman" ? 如果找不到不抛出异常scope : {} 创建独....
分类:
其他好文 时间:
2015-05-04 17:21:17
阅读次数:
149
Update for MVC 3ViewContext.Controller.ValueProvider.GetValue("action").RawValueViewContext.Controller.ValueProvider.GetValue("controller").RawValueVi...
分类:
Web程序 时间:
2015-05-04 17:07:58
阅读次数:
130