上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 59 下一页
  2014年5月8日
摘要: 今天研究了一下scope的作用域。默认是单例模式,即scope="singleton"。另外scope还有prototype、request、session、global session作用域。scope="prototype"多例。再配置bean的作用域时,它的头文件形式如下:如何使用spring... 阅读全文
posted @ 2014-05-08 19:11 一个人的天空@ 阅读(104121) 评论(5) 推荐(8) 编辑
摘要: 在基于主机方式配置Spring的配置文件中,你可能会见到这样一条配置,他的作用是式地向Spring容器注册AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcessor、PersistenceAnnotationBeanP... 阅读全文
posted @ 2014-05-08 17:16 一个人的天空@ 阅读(489) 评论(0) 推荐(0) 编辑
  2014年5月6日
摘要: 一、安装Jenkins地址http://mirrors.jenkins-ci.org/下载适合的Jenkins版本。Windows最新稳定版的Jenkins地址为:http://mirrors.jenkins-ci.org/windows-stable/jenkins-1.409.1.zip把Jen... 阅读全文
posted @ 2014-05-06 14:58 一个人的天空@ 阅读(3971) 评论(0) 推荐(0) 编辑
摘要: 你可能想要配置 Maven 使其完全跳过单元测试。 可能你有一个很大的系统,单元测试需要花好多分钟来完成,而你不想在生成最终输出前等单元测试完成。 你可能正工作在一个遗留系统上面,这个系统有一系列的失败的单元测试,你可能仅仅想要生成一个JAR而不是去修复所有的单元测试。 Maven 提供了跳过单元测... 阅读全文
posted @ 2014-05-06 14:46 一个人的天空@ 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 什么是pom? pom作为项目对象模型。通过xml表示maven项目,使用pom.xml来实现。主要描述了项目:包括配置文件;开发者需要遵循的规则,缺陷管理系统,组织和licenses,项目的url,项目的依赖性,以及其他所有的项目相关因素。快速察看: 4.0.0 ... ... ... ....... 阅读全文
posted @ 2014-05-06 14:45 一个人的天空@ 阅读(166173) 评论(3) 推荐(14) 编辑
摘要: 多方搜索,终于使maven项目可以自动发布到tomcat下了。tomcat7 需要使用 tomcat-maven-plugin 的新版本,版本支持tomcat6和tomcat7,groupId也由org.codehaus.mojo改为org.apache.tomcat.maven。可以参考看看:ht... 阅读全文
posted @ 2014-05-06 14:44 一个人的天空@ 阅读(25464) 评论(0) 推荐(0) 编辑
  2014年5月1日
摘要: >>> for i in range(0,10):if i > 10:break;else:print "hello world";输出:hello world>>> for i in range(0,10):if i > 5:break;else:print "hello world";没有输出-... 阅读全文
posted @ 2014-05-01 10:33 一个人的天空@ 阅读(12130) 评论(0) 推荐(1) 编辑
  2014年4月24日
摘要: If all your threads except the main ones are daemons, the best approach is generally thread.interrupt_main() -- any thread can use it to raise a Keybo... 阅读全文
posted @ 2014-04-24 11:33 一个人的天空@ 阅读(350) 评论(0) 推荐(0) 编辑
  2014年4月19日
摘要: require_once 'common/excel/PHPExcel.php'; require_once 'common/excel/phpExcel/Writer/Excel2007.php'; require_once 'common/excel/... 阅读全文
posted @ 2014-04-19 10:59 一个人的天空@ 阅读(424) 评论(0) 推荐(0) 编辑
  2014年4月9日
摘要: 如何让centos(redhat)配置虚拟主机,让服务器支持多个网站,针对Apache,只需要你修改apache配置文件/etc/httpd/conf/httpd.conf即可。里面有个example文件,你只要对应配置即可。## ServerAdmin webmaster@dummy-host.example.com# DocumentRoot /www/docs/dummy-host.example.com# ServerName dummy-host.example.com# ErrorLog logs/dummy-host.example.com-error_log# Cus... 阅读全文
posted @ 2014-04-09 23:42 一个人的天空@ 阅读(10148) 评论(0) 推荐(1) 编辑
  2014年4月2日
摘要: mysql Access denied for user \'root\'@\'localhost\'”解决办法总结,下面我们对常见的出现的一些错误代码进行分析并给出解决办法,有需要的朋友可参考一下。错误代码 1045Access denied for user 'root'@'localhost' (using password:YES)解决办法是重新设置root用户密码,在Windows平台下操作步骤如下:1、以系统管理员身份登录到系统;2、如果MySQL服务器正在运行,停止它。 如果是作为Windows服务运行的服务器,进入 阅读全文
posted @ 2014-04-02 23:59 一个人的天空@ 阅读(919987) 评论(4) 推荐(5) 编辑
  2014年4月1日
摘要: 这里列出了一些如何监视你安装的mysql性能的一些ideas。监视总是一个持续的过程。你需要知道哪种模式对你的数据库是好的,什么是问题的表象,甚至是危险的情况。一下列出了用来去监视你的系统的主要参数:- mysqladmin extended (绝对值)- mysqladmin extended -i10 -r (相对值)- mysqladmin processlist- mysql -e "show innodb status"- OS data. vmstat/iostat- MySQL error log- InnoDB tablespace info.1) mysq 阅读全文
posted @ 2014-04-01 23:01 一个人的天空@ 阅读(2302) 评论(0) 推荐(0) 编辑
摘要: SHOW STATUS提供服务器的状态信息(象mysqladmin extended-status一样)。输出类似于下面的显示,尽管格式和数字可以有点不同:+--------------------------+--------+| Variable_name | Value |+--------------------------+--------+| Aborted_clients | 0 || Aborted_connects | 0 || Connections | 17 || Created_tmp_tables | 0 || Delayed_insert_threads | 0 | 阅读全文
posted @ 2014-04-01 22:49 一个人的天空@ 阅读(3655) 评论(0) 推荐(0) 编辑
摘要: mysqladmin 适合于linux和windows系统linux下:mysqladmin -u[username] -p[password] statuswindows下:先在安装目录找到mysqladmin.exe,然后在dos界面下change到这个目录,执行mysqladmin -u[username] -p[password] extended-status这里的extended-status 和status只是mysqladmin的两个参数而已!MySQLAdmin用法用于执行管理性操作。语法是:shell> mysqladmin [OPTIONS] command [co 阅读全文
posted @ 2014-04-01 22:32 一个人的天空@ 阅读(49057) 评论(0) 推荐(0) 编辑
摘要: cron 是linux的内置服务,但它不自动起来,可以用以下的方法启动、关闭这个服务:引用:/sbin/service crond start //启动服务/sbin/service crond stop //关闭服务/sbin/service crond restart //重启服务/sbin/service crond reload //重新载入配置//=========================================================================# Use the hash sign to prefix a comment# +----- 阅读全文
posted @ 2014-04-01 00:27 一个人的天空@ 阅读(1058) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 59 下一页