`
iwelcomeyou
  • 浏览: 16826 次
社区版块
存档分类
最新评论
文章列表
This tutorial describes how to install and configure latest Oracle Java JDK on CentOS 7, 6.5, and 6.4 servers. Although, the steps should work on other RPM based distributions such as RHEL 7, 6.x, Scientific Linux 6.x, and Fedora too. First of all, update your server. yum update Then, search for ...
spring启动component-scan类扫描加载过程,源码分析    http://blog.csdn.net/xieyuooo/article/details/9089441   慎用ClassPathXmlApplicationContext手动加载spring配置文件  http://blog.csdn.net/maidou_2011/article/details/8447384
在使用spring加载jar包中的配置文件时,不支持通配符,需要一个一个引入,如下所示: Java代码   <context-param>  <param-name>contextConfigLocation</param-name>  <param-value>  classpath*:beanconfigs/applicationContext_1.xml,  classpath*:beanconfigs/applicationContext_2.xml, ...  </param-value>  </c ...
在本机 export JPDA_ADDRESS=8000 (端口号) export JPDA_TRANSPORT=dt_socket   利用下列命令启动tomcat Tomcat folder/bin/catalina.sh jpda start   在ide上设置,远程连接到tomcat   参考https://confluence.sakaiproject.org/display/BOOT/Setting+Up+Tomcat+For+Remote+Debugging
更新pom文件 <plugin>    <groupId>org.apache.tomcat.maven</groupId>    <artifactId>tomcat7-maven-plugin</artifactId>    <version>2.2</version>    <configuration>        <url>http://remotehost:8080/manager/text</url>        <server>R ...
1. 多条连接共享 如果你需要在多个窗口中打开到同一个服务器的连接,而不想每次都输入用户名,密码,或是等待连接建立,那么你可以配置SSH的连接共享选项,在本地打开你的SSH配置文件,通常它们位于~/.ssh/config,然后添加下面2行:
第一步:生成ssh密钥 利用ssh-keygen命令,生成ssh key文件,缺省保存在~/.ssh下,id_rsa.pub是公钥,id_rsa是私钥   第二步:拷贝公钥到被管理的服务器上 把你的公钥拷贝到被管理的服务器上,存放在要登陆的用户目录下~/.ssh,如果目录不存在,创建它,并把目录权限设置为700。新建文件authorized_keys,赋予权限600,把你的公钥的内容存入,cat id_rsa.pub > authorized_keys。   第三步:在你本地机器,为你要登陆的地址设置别名 在~/.ssh下创建新的文件config,配置如下 Host   ...

Maven缺省属性

Note: In Maven 3.0, all pom.* properties are deprecated. Use project.* instead! Built-in properties ${basedir} represents the directory containing pom.xml ${version} equivalent to ${project.version} (deprecated: ${pom.version}) Pom/Project properties All elements in the pom.xml, can be ref ...
如何在mac 10.9 中让浏览器支持java plugin http://support.apple.com/kb/ht5559 -------------------------------------------------------------------------- 删除右键打开项目重复 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\ LaunchServices.framework/Versions/A/Support/\ lsregister -kill -r -domain ...
C3P0是一个开放源代码的JDBC数据源实现项目,JDBC3和JDBC2扩展规范说明的 Connection 和Statement 池。下面是使用C3P0配置一个 PostgreSQL数据源:Sring applicationContext.xml 配置代码:  1<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> 2        <property name
JQuery构造一个form对象,然后form.submit();就等于是普通form表单向后台提交了! //创建一个form对象 var form = document.createElement("form"); //将form对象添加到body中 document.body.appendChild(form); //设置form的属性,等价于<form action="XXX.action" method="post"></form> f ...

快捷键

Intellij 快捷键   cmd+N 查找类 cmd+shift+N 查找文件 cmd+alt+L 格式化代码 cmd+alt+O 优化导入的包 cmd+E 打开最近编辑的文件 cmd+P 方法参数提示 cmd+shift+alt+N 查找类中的方法或变量 cmd+X 删除行 cmd+D 复制行 cmd+alt+left/right 返回到上 ...

一些有用的Git命令

    博客分类:
  • Git
1. 导出最后一次提交修改过的文件   我一直在使用这个命令定期进行发送给其他人进行审查/整合。这条命令将把近期提交的修改过的文件导出到一个zip文件。

学习Git相关网站

    博客分类:
  • Git
在线学习Git    http://pcottle.github.io/learnGitBranching/      https://www.codeschool.com/courses/git-real   Pro Git 书籍   http://git-scm.com/book/en   Git User‘s Manual https://www.kernel.org/pub/software/scm/git/docs/user-manual.html   Git Community Book 中文版 http://gitbook.liuhui998.com/1_1.htm ...

Linux上搭建Git服务

    博客分类:
  • Git
搭建Git服务器需要准备一台运行Linux的机器,强烈推荐用Ubuntu或Debian,这样,通过几条简单的apt命令就可以完成安装。 假设你已经有sudo权限的用户账号,下面,正式开始安装。 第一步,安装git: $ sudo apt-get install git 第二步,创建一个git用户,用来运行git服务: $ sudo adduser git 第三步,创建证书登录: 收集所有需要登录的用户的公钥,就是他们自己的id_rsa.pub文件,把所有公钥导入到/home/gi
Global site tag (gtag.js) - Google Analytics