- 实验2 Java类和对象的设计
CQUST-XMY
Javajava封装object编程语言
实验题目:Java类和对象的设计一、上机目的和要求理解面向对象的编程思想、类与对象的概念;加深理解封装性、继承性和多态性;掌握this、super、final、static等关键字的使用;掌握抽象类和接口的使用方法;掌握包的概念与使用;掌握四种访问控制权限(private、default、protected、public)的区别。二、上机内容定义一个类MyProgram,包含两个属性:一个是pri
- linux c语言记录内核错误
weixin_38849487
linuxc语言运维
在LinuxC程序中,将信息记录在日志文件中通常使用syslog守护进程来实现。你可以使用syslog()函数将自定义的错误信息记录到系统日志中。另外,你也可以使用开源库如liblog,log4c等来更加灵活地记录日志。下面是一个简单的示例代码,演示如何使用syslog()函数将错误信息记录在日志文件中:#include#includeintmain(){openlog("MyProgram",L
- 在project目录创建独立program
longlongway2012
UE引擎学习ue5Slate
一、独立运行的consle程序网上大多数创建program的例子都是在引擎目录下,这里尝试了如何在project目录创建program的方法,参考:使用UnrealEngine创建独立应用-知乎(zhihu.com)这里以创建一个MyProgram的独立exe进行举例拷贝引擎目录的blankProgram目录到项目的source目录下修改BlankProgram.Build.cs将BlankPro
- gcc-o,gcc -o3和gcc -ofast的含义和作用
couldn
c语言linux编译makec语言加速
GCC是GNU编译器套件,是一种使用广泛的开源编译器,用于编译C、C++、Objective-C、Fortran、Ada等编程语言的代码。 "-o"是一个选项,用于指定输出的文件名。例如,"gcc-omyprogrammyprogram.c"会把myprogram.c编译成一个名为myprogram的可执行文件。 "-O3"和"-Ofast"是GCC的优化选项。 "-O3"表示开启所有的
- 1.4第一个AYA/YAYA小程序helloworld
fancyang
萌动精灵开发语言
我们用emeditor编辑一个文本文件,命名为MyProgram.dic,保存编码格式为UTF-8。然后我们写入下面代码:OnHelloWorld{_txt="\0\s[5]\b[0]\![set,balloontimeout,0]";_txt+="HelloWorld!\n\e";_txt;}注解1:_txt前的_表示该变量为一个局域变量,即是只在OnHelloWorld函数中起作用,超出函数外
- makefile编译举例
付宇利
makefile
makefile编译举例#定义编译器和编译选项CC=gccCFLAGS=-Wall-Werror#定义目标文件名TARGET=myprogram#定义需要编译的源文件目录和文件名SRC_DIR1=src1SRC_DIR2=src2OBJ_DIR1=obj1OBJ_DIR2=obj2SRC_FILES1=file1.cfile2.cSRC_FILES2=file3.cfile4.cOBJ_FILES
- VC下实现循环播放MP3,wma等音乐
遇见恒星
音乐null数据结构编程windowsstring
VC下实现循环播放MP3,wma等音乐。作者:遇见恒星这几天在研究WINDOWS下的MCI编程。看了好多资料,基本上弄懂了一些。以下是我写的代码:大家看看,希望对大家有帮助提示:代码中的歌曲1.wma和1.mp3必须和程序放在一起,你也可以设置路径。如:你要播放D盘下的文件夹myprogram里面的一首歌曲“千里之外.mp3”可以设置为:“d://myprogram//千里之外.mp3”,具体在程
- MySQL导入.sql文件及常用命令
从删库到跑路养成记
mysql数据库deletedatabase脚本insert
MySQL导入.sql文件及常用命令在MySQLQureyBrower中直接导入*.sql脚本,是不能一次执行多条sql命令的,在mysql中执行sql文件的命令:mysql>sourced:/myprogram/database/db.sql;另附mysql常用命令:一)连接MYSQL:格式:mysql-h主机地址-u用户名-p用户密码1、例1:连接到本机上的MYSQL首先在打开DOS窗口,然后
- Linux常见问题-打deb包流程
图王大胜
Linux系统linux
Deb打包目的:将程序打包成.deb格式是为了在Debian和Ubuntu等基于Debian的Linux发行版上进行方便的安装和管理。以下是一个简要的流程,以一个输出"HelloWorld"的C++程序为例。1准备工作确保你的系统安装了构建工具,如g++(用于编译C++程序)和dpkg-deb(用于创建.deb文件)。在项目目录中,创建一个用于存放待打包文件的文件夹myprogram.2编写C++
- rpm包制作脚本spec文件书写指南
岳来
linux&shellrpmrpmbuildlinuxspecpackage
spec文件用于制作rpm包,包含了软件包的诸多信息,如软件包的名字、版本、类别、说明摘要、创建时要执行什么指令、安装时要执行什么操作、以及软件包所要包含的文件列表等等。示例如下:Name:myprogramVersion:1.0Release:1Vendor:JaunSummary:MyprogramLicense:GPLURL:http://myprogram.comSource0:mypro
- Windows下使用winsw自定义自启动服务
皮多堡
windows上没有nohuprun.sh&一直开启cmd窗口,实在不方便,所以找到了WinSW工具下载下载地址选择如下两个文件下载配置下载完成后,放在同一文件夹下,重命名为相同的名字,如下编辑xml文件如下elasticsearch7elasticsearch7ThisserviceisaservicecreatedfromaminimalconfigurationD:\MyProgram\de
- 如何将.ipynb文件转换为.py文件
Leon_George
pythonubuntujupyter格式转换
作业条件:在jupyternotebook下编写完程序,保存为“myprogram.ipynb”。作业目的:选择在jupyternotebook下编写python程序(因为喜欢它的界面简单可实时看到运行效果的特点),调试成功之后保存成py文件,以便在其它电脑上运行(因为jupyternotebook默认保存的是.ipynb文件)。作业实施:命令行下进入“myprogram.ipynb”文件所在目录
- Ubuntu15.04+Qt5.7+Caffe+Opencv2.4.10+MySql5.6配置.pro文件
YiLiang_
Qtothercaffe
MyProgram.pro文件配置如下:#-------------------------------------------------##ProjectcreatedbyQtCreator2017-03-30T14:03:51##-------------------------------------------------QT+=coreguigreaterThan(QT_MAJOR_V
- 2006年浙大研究生复试机试真题-畅通工程
敩科炼技堂
ACMPracticesandArticals测试algorithm交通structinputbt
/*题目描述:某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。输入:测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N(//MyProgram-----------Primalgorithm-----
- Java类和对象的设计原理
目录一、实验目的二、实验代码1.定义一个类MyProgram,包含两个属性:2.在Vehicle类的基础上创建一个Tractor(拖拉机)类3.组合实现汽车类5.USB接口程序设计6.this关键字主要有三个应用:7.请简述static关键字的作用8.请简述super关键字的作用9.请简述final关键字的作用一、实验目的1.掌握面向对象的编程思想、类与对象;2.掌握类的封装性、继承性和多态性的作
- MySQL导入SQL文件及常用命令
北漂编程小王子
Mysqlmysql导入mysql导出
在MySQLQureyBrower中直接导入*.sql脚本,是不能一次执行多条sql命令的,在mysql中执行sql文件的命令:mysql>sourced:/myprogram/database/db.sql;另附mysql常用命令:一)连接MYSQL:格式:mysql-h主机地址-u用户名-p用户密码1、例1:连接到本机上的MYSQL首先在打开DOS窗口,然后进入mysql安装目录下的bin目录
- sourceTree分支合并
心情的蛊惑
首先在码云上新建一个远程仓库myProgram。分别克隆本地文件夹1和2。在文件夹1和2,分别做出改动.这里我只是模拟,所以分别放置了一张苹果图片和一张橙子图片。Snip20210311_1.pngSnip20210311_12.png在sourceTree上找到源文件位于文件夹1的,新建分支first,并推送到远端。新建.png新建之后,在左边本地分支可以看到first分支.注意:此时,还只是本
- python 管道 异步读取 stdout select_关于io:python中subprocess.PIPE上的非阻塞读取
weixin_39986060
python管道异步读取stdoutselect
我正在使用子进程模块启动子进程并连接到它的输出流(stdout)。我希望能够在其标准输出上执行非阻塞读取。有没有办法让.readline非阻塞或在我调用.readline之前检查流上是否有数据?我希望这是可移植的,或至少在Windows和Linux下工作。这是我现在的工作方式(如果没有数据可用,它会在.readline上阻塞):p=subprocess.Popen('myprogram.exe',
- MeteoInfoLab脚本示例:天气现象符号
Angela㐅cc
matlabjava
天气现象符号分布图实际就是散点图,可以用scatterm函数绘制,但之前需要创建天气符号图例,用weatherspec函数。如果只需要绘制某些天气现象(比如雾、霾),可以给出相应的天气符号序号列表(可以在网上查找)。脚本程序:#Setdatafoldersbasedir='D:/MyProgram/Distribution/java/MeteoInfo/MeteoInfo'datadir=os.p
- MySql常用命令及导入.sql文件
小明与小刚
mySqlmysql
在MySQLQureyBrower中直接导入*.sql脚本,是不能一次执行多条sql命令的,在mysql中执行sql文件的命令:mysql>sourced:/myprogram/database/db.sql;另附mysql常用命令:一)连接MYSQL:格式:mysql-h主机地址-u用户名-p用户密码1、例1:连接到本机上的MYSQL首先在打开DOS窗口,然后进入mysql安装目录下的bin目录
- Linux中的set和env命令
_佚名-2018_
ShellScripts
1.set命令显示当前shell的所有变量(环境变量,自定义变量,与bash接口相关的变量)2.env(1)不带任何参数,显示当前用户的环境变量(2)如果env后面带有命令command,那表示在某些环境变量下执行command命令,env会去PATH中去找相应的command命令,然后执行。使用举例:env./myprogram#启动myprogram程序envHEAPPROFILE=./myp
- 如何启动一个程序,直到它运行结束?
Ice1
学习笔记
SHELLEXECUTEINFOShExecInfo={0};ShExecInfo.cbSize=sizeof(SHELLEXECUTEINFO);ShExecInfo.fMask=SEE_MASK_NOCLOSEPROCESS;ShExecInfo.hwnd=NULL;ShExecInfo.lpVerb=NULL;ShExecInfo.lpFile="c://MyProgram.exe";ShE
- qt5 deploy 部署 双击 myProgram.exe时 提示找不着 ...windows 不能运行
zhang7266876
qt5applicationwindows发布plugins
theapplicationfailedtostartbecauseitcouldnotfindorloadtheqtplatformplugin"windows"Failedtoloadplatformplugin“windows”解决办法:大家在发布程序时,遇到各种问题可以这样试一下,我也是遇到好几个问题,到最后才发现都是扯淡,直接把dll和自带的插件什么的拷贝过来就完事了。请看:把QT安装目
- java 简介
此心可依
一:JVM(JavaVirtualMachine)Java虚拟机,是Java技术的核心。Java的跨平台是通过JVM实现的。1)源文件(.java)===>编译器(compiler)形成字节码文件(.class)====>解释器(interpreter)===》Myprogram二:1)JDK:JavaDevelopmentkit(Java开发工具包)2)JRE:JavaRuntimeEnviro
- c#面试题:找出字符串中出现次数最多的字符及出现次数
lz00728
.NET技术
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){stringstr="myprogram!";Dictionarydic=newDictionary();for(inti=0;itin
- path.join 与 path.resolve 的区别
weixin_30780221
对比举一个简单的例子constpath=require('path');console.log(__dirname);//D:\myProgram\testletmyPath=path.join(__dirname,'/img/so');//D:\myProgram\test\img\soletmyPath2=path.join(__dirname,'./img/so');//D:\myProgr
- java中try-catch语句的使用
带着心去流浪
java初学习
首先贴一下代码吧:importjava.io.File;importjava.io.FileInputStream;importjava.io.FileOutputStream;importjava.util.Date;publicclassFileInAndOut{privatestaticStringfilePath="./myProgram.cfg";privatestaticFilefil
- mysql-5.7.17-winx64的安装配置
Rebirth_Love
sql
第一步:下载mysql-5.7.17-winx64解压版本:http://dev.mysql.com/downloads/mysql/第二步:解压到安装目录,如:C:\myprogram\mysql-5.7.17-winx64第三步:设置环境变量操作如下:1)右键单击我的电脑->属性->高级系统设置(高级)->环境变量点击系统变量下的新建按钮输入变量名:MYSQL_HOME输入变量值:C:\myp
- Linux 常用命令合集
郭柒
Linux相关操作系统相关
常用命令艿艿:这一小节会非常非常非常长,当做温故知新吧。另外,面试官也可能会问,你熟悉Linux么?你平时使用哪些Linux命令。酱紫的连环炮~当然,建议重点看下「性能相关」小节。目录相关find命令《Linux命令大全——find命令》查找指定文件名的文件(不区分大小写):find-iname"MyProgram.c"。对找到的文件执行某个命令:find-iname"MyProgram.c"-e
- NPAPI插件开发详细记录:用VS2010开发NPAPI插件步骤
shangbolei
firebreathfirebreath
前面一段时间关注了用firebreath开发插件,但是感觉用起来不是那么得心应手,还是回到NPAPI开发插件上来。本文根据NPAPI开发详解,Windows版进行开发,其中以VS2008为例进行开发,在VS2010中基本上是相同的。必须的pluginsdk,将其解压到某个目录下,我这里是:D:\Users\zcf\Documents\MyProgram\2012。下面是创建插件的步骤:1、创建项目
- java工厂模式
3213213333332132
java抽象工厂
工厂模式有
1、工厂方法
2、抽象工厂方法。
下面我的实现是抽象工厂方法,
给所有具体的产品类定一个通用的接口。
package 工厂模式;
/**
* 航天飞行接口
*
* @Description
* @author FuJianyong
* 2015-7-14下午02:42:05
*/
public interface SpaceF
- nginx频率限制+python测试
ronin47
nginx 频率 python
部分内容参考:http://www.abc3210.com/2013/web_04/82.shtml
首先说一下遇到这个问题是因为网站被攻击,阿里云报警,想到要限制一下访问频率,而不是限制ip(限制ip的方案稍后给出)。nginx连接资源被吃空返回状态码是502,添加本方案限制后返回599,与正常状态码区别开。步骤如下:
- java线程和线程池的使用
dyy_gusi
ThreadPoolthreadRunnabletimer
java线程和线程池
一、创建多线程的方式
java多线程很常见,如何使用多线程,如何创建线程,java中有两种方式,第一种是让自己的类实现Runnable接口,第二种是让自己的类继承Thread类。其实Thread类自己也是实现了Runnable接口。具体使用实例如下:
1、通过实现Runnable接口方式 1 2
- Linux
171815164
linux
ubuntu kernel
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1.2-unstable/
安卓sdk代理
mirrors.neusoft.edu.cn 80
输入法和jdk
sudo apt-get install fcitx
su
- Tomcat JDBC Connection Pool
g21121
Connection
Tomcat7 抛弃了以往的DBCP 采用了新的Tomcat Jdbc Pool 作为数据库连接组件,事实上DBCP已经被Hibernate 所抛弃,因为他存在很多问题,诸如:更新缓慢,bug较多,编译问题,代码复杂等等。
Tomcat Jdbc P
- 敲代码的一点想法
永夜-极光
java随笔感想
入门学习java编程已经半年了,一路敲代码下来,现在也才1w+行代码量,也就菜鸟水准吧,但是在整个学习过程中,我一直在想,为什么很多培训老师,网上的文章都是要我们背一些代码?比如学习Arraylist的时候,教师就让我们先参考源代码写一遍,然
- jvm指令集
程序员是怎么炼成的
jvm 指令集
转自:http://blog.csdn.net/hudashi/article/details/7062675#comments
将值推送至栈顶时 const ldc push load指令
const系列
该系列命令主要负责把简单的数值类型送到栈顶。(从常量池或者局部变量push到栈顶时均使用)
0x02 &nbs
- Oracle字符集的查看查询和Oracle字符集的设置修改
aijuans
oracle
本文主要讨论以下几个部分:如何查看查询oracle字符集、 修改设置字符集以及常见的oracle utf8字符集和oracle exp 字符集问题。
一、什么是Oracle字符集
Oracle字符集是一个字节数据的解释的符号集合,有大小之分,有相互的包容关系。ORACLE 支持国家语言的体系结构允许你使用本地化语言来存储,处理,检索数据。它使数据库工具,错误消息,排序次序,日期,时间,货
- png在Ie6下透明度处理方法
antonyup_2006
css浏览器FirebugIE
由于之前到深圳现场支撑上线,当时为了解决个控件下载,我机器上的IE8老报个错,不得以把ie8卸载掉,换个Ie6,问题解决了,今天出差回来,用ie6登入另一个正在开发的系统,遇到了Png图片的问题,当然升级到ie8(ie8自带的开发人员工具调试前端页面JS之类的还是比较方便的,和FireBug一样,呵呵),这个问题就解决了,但稍微做了下这个问题的处理。
我们知道PNG是图像文件存储格式,查询资
- 表查询常用命令高级查询方法(二)
百合不是茶
oracle分页查询分组查询联合查询
----------------------------------------------------分组查询 group by having --平均工资和最高工资 select avg(sal)平均工资,max(sal) from emp ; --每个部门的平均工资和最高工资
- uploadify3.1版本参数使用详解
bijian1013
JavaScriptuploadify3.1
使用:
绑定的界面元素<input id='gallery'type='file'/>$("#gallery").uploadify({设置参数,参数如下});
设置的属性:
id: jQuery(this).attr('id'),//绑定的input的ID
langFile: 'http://ww
- 精通Oracle10编程SQL(17)使用ORACLE系统包
bijian1013
oracle数据库plsql
/*
*使用ORACLE系统包
*/
--1.DBMS_OUTPUT
--ENABLE:用于激活过程PUT,PUT_LINE,NEW_LINE,GET_LINE和GET_LINES的调用
--语法:DBMS_OUTPUT.enable(buffer_size in integer default 20000);
--DISABLE:用于禁止对过程PUT,PUT_LINE,NEW
- 【JVM一】JVM垃圾回收日志
bit1129
垃圾回收
将JVM垃圾回收的日志记录下来,对于分析垃圾回收的运行状态,进而调整内存分配(年轻代,老年代,永久代的内存分配)等是很有意义的。JVM与垃圾回收日志相关的参数包括:
-XX:+PrintGC
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintGCDateStamps
-Xloggc
-XX:+PrintGC
通
- Toast使用
白糖_
toast
Android中的Toast是一种简易的消息提示框,toast提示框不能被用户点击,toast会根据用户设置的显示时间后自动消失。
创建Toast
两个方法创建Toast
makeText(Context context, int resId, int duration)
参数:context是toast显示在
- angular.identity
boyitech
AngularJSAngularJS API
angular.identiy 描述: 返回它第一参数的函数. 此函数多用于函数是编程. 使用方法: angular.identity(value); 参数详解: Param Type Details value
*
to be returned. 返回值: 传入的value 实例代码:
<!DOCTYPE HTML>
- java-两整数相除,求循环节
bylijinnan
java
import java.util.ArrayList;
import java.util.List;
public class CircleDigitsInDivision {
/**
* 题目:求循环节,若整除则返回NULL,否则返回char*指向循环节。先写思路。函数原型:char*get_circle_digits(unsigned k,unsigned j)
- Java 日期 周 年
Chen.H
javaC++cC#
/**
* java日期操作(月末、周末等的日期操作)
*
* @author
*
*/
public class DateUtil {
/** */
/**
* 取得某天相加(减)後的那一天
*
* @param date
* @param num
*
- [高考与专业]欢迎广大高中毕业生加入自动控制与计算机应用专业
comsci
计算机
不知道现在的高校还设置这个宽口径专业没有,自动控制与计算机应用专业,我就是这个专业毕业的,这个专业的课程非常多,既要学习自动控制方面的课程,也要学习计算机专业的课程,对数学也要求比较高.....如果有这个专业,欢迎大家报考...毕业出来之后,就业的途径非常广.....
以后
- 分层查询(Hierarchical Queries)
daizj
oracle递归查询层次查询
Hierarchical Queries
If a table contains hierarchical data, then you can select rows in a hierarchical order using the hierarchical query clause:
hierarchical_query_clause::=
start with condi
- 数据迁移
daysinsun
数据迁移
最近公司在重构一个医疗系统,原来的系统是两个.Net系统,现需要重构到java中。数据库分别为SQL Server和Mysql,现需要将数据库统一为Hana数据库,发现了几个问题,但最后通过努力都解决了。
1、原本通过Hana的数据迁移工具把数据是可以迁移过去的,在MySQl里面的字段为TEXT类型的到Hana里面就存储不了了,最后不得不更改为clob。
2、在数据插入的时候有些字段特别长
- C语言学习二进制的表示示例
dcj3sjt126com
cbasic
进制的表示示例
# include <stdio.h>
int main(void)
{
int i = 0x32C;
printf("i = %d\n", i);
/*
printf的用法
%d表示以十进制输出
%x或%X表示以十六进制的输出
%o表示以八进制输出
*/
return 0;
}
- NsTimer 和 UITableViewCell 之间的控制
dcj3sjt126com
ios
情况是这样的:
一个UITableView, 每个Cell的内容是我自定义的 viewA viewA上面有很多的动画, 我需要添加NSTimer来做动画, 由于TableView的复用机制, 我添加的动画会不断开启, 没有停止, 动画会执行越来越多.
解决办法:
在配置cell的时候开始动画, 然后在cell结束显示的时候停止动画
查找cell结束显示的代理
- MySql中case when then 的使用
fanxiaolong
casewhenthenend
select "主键", "项目编号", "项目名称","项目创建时间", "项目状态","部门名称","创建人"
union
(select
pp.id as "主键",
pp.project_number as &
- Ehcache(01)——简介、基本操作
234390216
cacheehcache简介CacheManagercrud
Ehcache简介
目录
1 CacheManager
1.1 构造方法构建
1.2 静态方法构建
2 Cache
2.1&
- 最容易懂的javascript闭包学习入门
jackyrong
JavaScript
http://www.ruanyifeng.com/blog/2009/08/learning_javascript_closures.html
闭包(closure)是Javascript语言的一个难点,也是它的特色,很多高级应用都要依靠闭包实现。
下面就是我的学习笔记,对于Javascript初学者应该是很有用的。
一、变量的作用域
要理解闭包,首先必须理解Javascript特殊
- 提升网站转化率的四步优化方案
php教程分享
数据结构PHP数据挖掘Google活动
网站开发完成后,我们在进行网站优化最关键的问题就是如何提高整体的转化率,这也是营销策略里最最重要的方面之一,并且也是网站综合运营实例的结果。文中分享了四大优化策略:调查、研究、优化、评估,这四大策略可以很好地帮助用户设计出高效的优化方案。
PHP开发的网站优化一个网站最关键和棘手的是,如何提高整体的转化率,这是任何营销策略里最重要的方面之一,而提升网站转化率是网站综合运营实力的结果。今天,我就分
- web开发里什么是HTML5的WebSocket?
naruto1990
Webhtml5浏览器socket
当前火起来的HTML5语言里面,很多学者们都还没有完全了解这语言的效果情况,我最喜欢的Web开发技术就是正迅速变得流行的 WebSocket API。WebSocket 提供了一个受欢迎的技术,以替代我们过去几年一直在用的Ajax技术。这个新的API提供了一个方法,从客户端使用简单的语法有效地推动消息到服务器。让我们看一看6个HTML5教程介绍里 的 WebSocket API:它可用于客户端、服
- Socket初步编程——简单实现群聊
Everyday都不同
socket网络编程初步认识
初次接触到socket网络编程,也参考了网络上众前辈的文章。尝试自己也写了一下,记录下过程吧:
服务端:(接收客户端消息并把它们打印出来)
public class SocketServer {
private List<Socket> socketList = new ArrayList<Socket>();
public s
- 面试:Hashtable与HashMap的区别(结合线程)
toknowme
昨天去了某钱公司面试,面试过程中被问道
Hashtable与HashMap的区别?当时就是回答了一点,Hashtable是线程安全的,HashMap是线程不安全的,说白了,就是Hashtable是的同步的,HashMap不是同步的,需要额外的处理一下。
今天就动手写了一个例子,直接看代码吧
package com.learn.lesson001;
import java
- MVC设计模式的总结
xp9802
设计模式mvc框架IOC
随着Web应用的商业逻辑包含逐渐复杂的公式分析计算、决策支持等,使客户机越
来越不堪重负,因此将系统的商业分离出来。单独形成一部分,这样三层结构产生了。
其中‘层’是逻辑上的划分。
三层体系结构是将整个系统划分为如图2.1所示的结构[3]
(1)表现层(Presentation layer):包含表示代码、用户交互GUI、数据验证。
该层用于向客户端用户提供GUI交互,它允许用户