摘要:
var texts = []; if(value==0){ texts.push('woo'); } else if (value <=1) { texts.push('好'); } else if (value<= 2) { texts.push('很好'); } else if(value<= 阅读全文
摘要:
一、使用npm 安装一个模块 n 到全局 npm install -g n 二、使用 n 加版本号就可以安装其他版本,比如: n 6.11.3 三、再使用 n ,通过上下键,就可以选择不同的版本啦 (注意,是从低版本升到高版本时多版本共存;如果是已经安装了高版本,再安装低版本时,高版本就没有了) 阅读全文
摘要:
const http = require('http');const hostname = '127.0.0.1';const port = 3000; const server = http.createServer((req, res) => { if(req.url!='/favicon.ic 阅读全文
摘要:
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctl stop firewalld.servicesystemctl disable firewalld.servicesystemctl mask firewalld 阅读全文
摘要:
方式一: dao层, User selectUser(int id) mapper,<select id="selectUser" resultType="a.b.c.User"> select * from user where user_id=#{0} </select> 方式二: dao层,b 阅读全文
摘要:
设有A表:create table A(int id,varchar(10) name, varchar(1) gender) 有B表:create table B(int id,varchar(10) name, varchar(1) gender, int money, int tax) 特点: 阅读全文
摘要:
转来的,有侵权联系删除 Eclipse的web工程至Tomcat默认的部署目录是在工程空间下,本文旨在将部署目录改为Tomcat安装目录,并解决依赖包输出问题。 ( 插入一句:把项目发布到eclipse的工作空间时,方便把空间考到其他地方用switch切换空间继续工作;发布到tomcat就没那么方便 阅读全文
摘要:
总图 分图 1 分图 2 git diff 除了上图的功能外,还可以比较本地仓库分支和远程仓库分支的区别:git diff master origin/master ,这个一般在fetch后用的比较多,具体看看异同再merge嘛 ! 《开始》 0.创建秘钥:ssh-keygen -t rsa -C 阅读全文
摘要:
(转)Spring事务传播机制解惑 (2013-04-26 11:13:59) 转载▼ (转)Spring事务传播机制解惑 转载▼ 标签: spring transaction propagation propagation_nested it 分类: J2EE_FrameWork spring t 阅读全文
摘要:
在Spring中这是一个很简洁的标签。它是对两个bean的简写。 在3.0中是 DefaultAnnotationHandlerMapping 和 AnnotationMethodHandlerAdapter ,从3.1开始改成了 RequestMappingHandlerMapping 和 Req 阅读全文