1、首先简单介绍一下什么是MVC思想。
在百度百科里面对MVC的说明,MVC全名是Model View Controller,是模型(model)-视图(view)-控制器(controller)的缩写。那么在JAVA的web开发中,MVC分别是对应于:显示页面(视图)、数据对象(模型)、业务处理(控制器)。
简单举个例子来说,在学生信息管理系统里,登陆界面就是一个视图,而登陆完成后,进行用户...
分类:
编程语言 时间:
2014-10-24 13:03:02
阅读次数:
183
1 /****************************************************** 2 A fifo controller verilog description. 3 ************************************************....
分类:
其他好文 时间:
2014-10-23 22:25:08
阅读次数:
302
<?php
/**
* This is not a free software, All Copyright @F.Z.B
* Date: 14-8-12 下午4:08
* File: CacheController.class.php
* Author: default.fu@foxmail.com
*/
namespace Api\Controller;
class CacheC...
分类:
Web程序 时间:
2014-10-23 19:23:49
阅读次数:
225
一【实体Entity:与数据库中的表对应1、spring不会注入entity,使用时需要使用new方法创建实例。二【repository:数据库操作接口1、创建接口:publicinterfaceStudentRepositoryextends
PagingAndSortingRepository<Entity,String>{}2、需要注入时:@Resource(name="stud..
分类:
编程语言 时间:
2014-10-23 12:43:55
阅读次数:
233
在Angularjs开发一些经验总结随笔中提到我们需要按照业务却分angular controller,避免过大无所不能的上帝controller,我们把controller分离开了,但是有时候我们需要在controller中通信,一般为比较简单的通信机制,告诉同伴controller我的某个你所关...
分类:
其他好文 时间:
2014-10-22 19:47:17
阅读次数:
198
http://guides.rubyonrails.org/v3.0.8/action_controller_overview.html#the-flash
如何在页面显示controller里的错误提示,
The flash is a special part of the session which is cleared with each request. This means th...
分类:
其他好文 时间:
2014-10-22 18:20:42
阅读次数:
164
网络接口配置文件[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)TYPE=Ethernet...
分类:
系统相关 时间:
2014-10-22 17:32:21
阅读次数:
308
针对新板调试,不针对EVM板。
TI XDS560连上DM8168 20pin仿真接口
launch 8168.ccxml,右击CortexA8,选择Connect Target
出现错误如下:
“Error connecting to the target: (Error -181 @ 0x0)
The controller has detected a dead JTAG cloc...
分类:
其他好文 时间:
2014-10-22 15:55:41
阅读次数:
266
今天在写一个rest controller的时候发现接收不到put的ajax请求,搜了一下,只要加上HttpPutFormContentFilter就可以解决了
分类:
编程语言 时间:
2014-10-21 17:57:37
阅读次数:
206
同事一台toshiba的笔记本计算机,无法正常启动,每次均需要按ESC才可以正常后续动作。 之后系统可以正常工作。排查过程:1、尝试恢复bios到默认配置;不行,而且不小心搞了个蓝屏,还好记得是“SATA controller mode”设置的问题,改AHCI为compatibility兼容即可。2...
分类:
其他好文 时间:
2014-10-21 11:50:02
阅读次数:
173