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