hibernate 有时候会出现集合映射的情况,一般One-to-many的时候会用到。主要形式为: model: ?public class TestPerson { ????? ?private Long pid; ????? ?private String pname; ????? ?pri...
分类:
Web开发 时间:
2015-09-24 19:48:43
收藏:
0 评论:
0 赞:
0 阅读:
249
css3中box-shadow是给元素块添加周边阴影效果。 一、语法 ? box-shadow:inset x-offset y-offset blur-radius spread-radius color ? 也就是 ? 对象选择器 {box-shadow:投影方式 X轴偏移量 Y轴偏移量 阴影模糊...
分类:
Web开发 时间:
2015-09-24 19:48:33
收藏:
0 评论:
0 赞:
0 阅读:
307
//name:参数名
function?GetQueryString(name)?{
???var?reg?=?new?RegExp("(^|&)"?+?name?+?"=([^&]*)(&|$)","i");
???var?r?=?window.location.search.substr(1).match(reg);
???if?(...
分类:
Web开发 时间:
2015-09-24 19:48:13
收藏:
0 评论:
0 赞:
0 阅读:
217
隐藏apache版本信息######################################33隐藏Apache信息[root@LAMP~]#curl-I127.0.0.1HTTP/1.1200OKDate:Thu,24Sep201501:47:29GMTServer:Apache/2.2.27(Unix)DAV/2PHP/5.3.27X-Powered-By:PHP/5.3.27Content-Type:text/html##由此可见版本号为2.2.27[root..
分类:
Web开发 时间:
2015-09-24 19:45:03
收藏:
0 评论:
0 赞:
0 阅读:
765
隐藏PHP版本修改:php.iniexpose_php=On改成expose_php=Off重启apache或者Nginx后,php版本在http头中隐藏了。cd/application/php/lib/sed-n‘/expose_php/p‘php.inised-i‘s/expose_php=On/expose_php=Off/g‘php.inised-n‘/expose_php/p‘php.ini##################[root@LNMP~]#c..
分类:
Web开发 时间:
2015-09-24 19:44:22
收藏:
0 评论:
0 赞:
0 阅读:
311
修改apache的默认用户和组##更改前查看apache的用户和组egrep-i"user|group"httpd.conf|egrep-v"#|^$"ps-ef|grephttpd[root@LAMPconf]#egrep-i"user|group"httpd.conf|egrep-v"#|^$"UserdaemonGroupdaemon[root@LAMPlib]#ps-ef|grephttpdroot433291011:09?00:00:00/application..
分类:
Web开发 时间:
2015-09-24 19:42:32
收藏:
0 评论:
0 赞:
0 阅读:
1338
一、安装php前准备:rpm-qazlib-devellibxml2-devellibjpeg-develfreetype-devellibpng-develgd-develcurl-developenssl-devellibxslt-develmysql,apache,libiconv需要源码安装二、编译参数./configure\--prefix=/application/php-5.6.13\--with-apxs2=/application/apache/bin..
分类:
Web开发 时间:
2015-09-24 19:41:52
收藏:
0 评论:
0 赞:
0 阅读:
290
<html><head><title>我的第三个页面</title><metacharset=utf-8></head><body><tableborder="1px"bordercolor="red"width="800px"height="200px"align="center"cellpadding="50px"cellspacing="10px"bgcolor="#ACEBFD"background..
分类:
Web开发 时间:
2015-09-24 19:41:43
收藏:
0 评论:
0 赞:
0 阅读:
281
配置apache的工作模式配置apache的worker或者perfork进程数viextra/httpd-mpm.conf###=============httpd-mpm.confpreforkbegin===================##设置prefork多路处理模块<IfModulempm_prefork_module>StartServers5MinSpareServers5MaxSpareServers10ServerLimit400..
分类:
Web开发 时间:
2015-09-24 19:41:22
收藏:
0 评论:
0 赞:
0 阅读:
265
以前一直做WinForm桌面应用开发,所以对MVC也是这几天的了解。传统三层是架构,MVC是展示模式,MVC相当于UI层,只是把UI层再次进行了分解。我用的是一个传统的三层架构+MVC2来做的一个增删改的示例。其中传统三层为了方便(懒省事),把其中的BLL层搞掉了。具体看下面项目的目..
分类:
Web开发 时间:
2015-09-24 19:38:42
收藏:
0 评论:
0 赞:
0 阅读:
197
##创建普通用户,并切换到普通用户下useraddlvnian002tail-5/etc/passwdechoasdasd|passwd--stdinlvnian002sulvnian002##########[root@LAMPconf]#useraddlvnian002tail-5/etc/passwdechoasdasd|passwd--stdinlvnian002sulvnian002[root@LAMPconf]#tail-5/etc/passwdtcpdump:x:..
分类:
Web开发 时间:
2015-09-24 19:38:32
收藏:
0 评论:
0 赞:
0 阅读:
226
常规获取方法:varprotocol=window.location.protocol;//"http:"varhost=window.location.host;//"localhost"or"www.baidu.com"varpathname=window.location.pathname;//"/dkrl/services/cases.php"varhref=window.location.href;//"http://localhost/dkrl/services/cases.php?..
分类:
Web开发 时间:
2015-09-24 19:37:12
收藏:
0 评论:
0 赞:
0 阅读:
272
PowershellDSC的Pull模式除了SMB以外,还可以使用HTTP或者HTTPS。这两个配置几乎一样,Https需要多配置一个证书。基本流程是配置pullserver,配置节点的LCM,配置需要实现的状态,然后推送测试。首先,我们需要一个webserver的证书。我已经有PKI在域里了,因此从IIS生成一个证..
分类:
Web开发 时间:
2015-09-24 19:35:42
收藏:
0 评论:
0 赞:
0 阅读:
280
js代码如下:functionaddFavorite(){varurl=window.location;vartitle=document.title;varua=navigator.userAgent.toLowerCase();if(ua.indexOf("360se")>-1){alert("由于360浏览器功能限制,请按Ctrl+D手动收藏!");}elseif(ua.indexOf("msie8")>-1){window.external.Ad..
分类:
Web开发 时间:
2015-09-24 19:35:03
收藏:
0 评论:
0 赞:
0 阅读:
184
#!/bin/shsoft_path=/soft/tooltar_path=/usr/local/srcapr_dir=/usr/local/src/apr-1.5.2apr_util_dir=$tar_path/apr-util-1.5.4httpd_dir=$tar_path/httpd-2.4.16svn_dir=$tar_path/subversion-1.9.1pcre_dir=$tar_path/pcre-8.36sqlite_dir=$tar_path/sqlite-autoconf-30811..
分类:
Web开发 时间:
2015-09-24 19:34:12
收藏:
0 评论:
0 赞:
0 阅读:
269
Redundancyiscommonpointfortoday’stopologies.Especiallyinmission-criticalnetworksthatitisnotacceptablethatusingonlyonegatewaytoreachapoint.Becauseonegatewaymeanssinglepointoffailure.Withmultiplegateways,youcanstillreachtheremotenodeevenifthatyouconnectfails..
分类:
Web开发 时间:
2015-09-24 19:33:52
收藏:
0 评论:
0 赞:
0 阅读:
243
日志轮询方法1下载cronlog软件cd/home/lvnian/toolswgethttp://down1.chinaunix.net/distfiles/cronolog-1.6.2.tar.gztarxfcronolog-1.6.2.tar.gzcdcronolog-1.6.2./configuremake&&makeinstallll/usr/local/sbin/cronolog#######3cronlog系统自带方式.把httpd.conf或..
分类:
Web开发 时间:
2015-09-24 19:33:42
收藏:
0 评论:
0 赞:
0 阅读:
214
apache日志不记录指定格式元素的日志apache不记录指点网站元素的日志,为什么需要这样做,什么情况下需要这样做:当计算日志pv时,一般不需要统计图片元素的日志,因为,打开一个网页才是一个PV,当RS服务器不希望记录来自前端负责均衡健康检查的无用日志,整个配置需要mod_set..
分类:
Web开发 时间:
2015-09-24 19:33:12
收藏:
0 评论:
0 赞:
0 阅读:
143
<!DOCTYPEhtml><html><head><title>我的第四个页面</title><metacharset=utf-8></head><body><tableborder="1"bordercolor="red"width="500"align="center"cellpadding="10"cellspacing="10"bgcolor="#000EFFE"background=..
分类:
Web开发 时间:
2015-09-24 19:30:52
收藏:
0 评论:
0 赞:
0 阅读:
361
1.项目环境:nginx(前段代理,仅作代理用途)+3个tomcat(都在同一个服务器上),做的web项目2.涉及到的业务逻辑:文件上传(可能有大文件,比如说android游戏,100m);客户端接口请求;网站后台管理3.问题重现流程:3.1配置好tomcat后,直接加上nginx前段代理(仅配置了http..
分类:
Web开发 时间:
2015-09-24 19:30:42
收藏:
0 评论:
0 赞:
0 阅读:
581