- 博客(27)
- 资源 (29)
- 收藏
- 关注
原创 mysql存储过程需要注意的
1.当使用游标赋值结果集时,变量名不能使用列明,不然赋值为nullBEGINDECLARE stopindex INT DEFAULT 0;DECLARE id1 int;DECLARE title VARCHAR(1000);DECLARE description VARCHAR(1000);DECLARE insertdate DATETIME;DECLARE usern
2016-03-30 13:41:08 522
原创 mysql存储过程入门
mysql存储过程详解1. 存储过程简介 我们常用的操作数据库语言SQL语句在执行的时候需要要先编译,然后执行,而存储过程(StoredProcedure)是一组为了完成特定功能的SQL语句集,经编译后存储在数据库中,用户通过指定存储过程的名字并给定参数(如果该存储过程带有参数)来调用执行它。一个存储过程是一个可编程的函数,它在数据库中创建并保存。它可以有SQL语句和一
2016-03-29 22:15:58 527
原创 memcached 在linux下的安装配置,及java操作
Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护进程(daemon )是用C写的,但是客户端可以用任何语言来编写,并通过memcached协议与守护进程通信。Memcache是一个高性能的分布式的
2016-03-29 22:12:00 1370
原创 ehcache + spring+mybatis整合
一、 Mybatis+Ehcache配置 为了提高MyBatis的性能,有时候我们需要加入缓存支持,目前用的比较多的缓存莫过于ehcache缓存了,ehcache性能强大,而且位各种应用都提供了解决方案,在此我们主要是做查询缓存,提高查询的效率. 整合MyBatis和ehcache需要的jar包如下:ehcache-core-2.4.4.jar
2016-03-29 21:45:27 3076
原创 redis和spring整合
pom构建:[html] view plain copy print?modelVersion>4.0.0modelVersion> groupId>com.x.redisgroupId> artifactId>springredisartifactId> version>0.0.1-SNAPSHOTversion>
2016-03-29 21:29:51 633
原创 redis入门及java操作
redis 命令可以去菜鸟教程http://www.runoob.com/redis/redis-tutorial.html或者以下地址去学习http://www.cnblogs.com/huangxincheng/category/755864.htmlredis在linux下的安装及启动下载地址:http://redis.io/download,下载最新文档版本。
2016-03-29 21:23:58 672
原创 mysql 编码的问题
当使用mysql数据库时,要确定五个编码。(1)首先我们要设置数据库的编码;(2)然后确定程序中的请求和响应的编码和数据库一致;(3)连接数据库的编码和数据库一致,jdbc:mysql://127.0.0.1:3306/数据库名?useUnicode=true&characterEncoding=utf-8;(4)页面编码和数据库一致。(5)程序文件编码和数据库一致。当以上五中都相
2016-03-19 21:41:44 407
原创 mysql 添加用户,授权,远程登陆,远程导入导出数据库,用户及权限查询,新增用户无法登陆,
添加用户及授予权限grant all privileges on *.* lhy@“10.163.225.87“ identified by ‘123′; *.*代表所有表,lhy是账户,‘123′是密码, “10.163.225.87“是ip,当ip地址是“%”时匹配所有地址。GRANT USAGE ON *.* TO 'discuz'@'localhost
2016-03-10 13:54:55 1766
原创 eclipse部署web项目至本地的tomcat但在webapps中找不到
一、发现问题在eclipse中新建Dynamic Web Project,配置好本地的tomcat并写好代码后选择Run on Server,但运行后发现在tomcat的安装目录下的webapps并没有出现所建立的工程名字。 二、验证很明显项目并没有自动部署到Tomcat的Webapps中而是部署在了别的容器中。在内置浏览器中输入http://localhost:8080/we
2016-03-09 21:40:22 514
原创 spring spring-mvc mybatis jetty 的pom.xml依赖配置完整版
0.0.1-SNAPSHOT 4.0.4.RELEASE 3.1.4.RELEASE 1.5.2.RELEASE 1.10.2.RELEASE 1.4.1.RELEASE 3.2.7 1.2.2 5.1.33 3.1.1 1.2.2 UTF-8 1.7 net.sf.json-lib json-
2016-03-08 16:35:38 1338
原创 maven 完整版打包
所有项目都依赖这个父项目父项目<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.o
2016-03-08 16:33:52 1155
原创 centos7 安装 navicat for mysql
下载地址 http://download.navicat.com/download/navicat111_mysql_en.tar.gz(1).先安装wine环境yum install wine(2)官网上提供的是32位版本的需要安装所以 要安装32位的一些包yum install glibc.i686 yum install freetype.i686 yum i
2016-03-07 15:04:32 7894
转载 mybatis整合redis重写 生成key的方法
mybatis默认缓存是PerpetualCache,可以查看一下它的源码,发现其是Cache接口的实现;那么我们的缓存只要实现该接口即可。 该接口有以下方法需要实现: String getId(); int getSize(); void putObject(Object key, Object value); Object getObject(Object ke
2016-03-06 21:11:55 3570
原创 mongdb 基本概念
mangodb可以有多个instance,一个instance可以有多个database,database又可以有多个collection,每个collection也可以有多个document1、文档(Document)mongoDB的基本单位,相当于关系数据库中的行。它是一组有序的key/value键值对,使用json格式,如:{"foo" : 3
2016-03-06 16:46:07 644
原创 基于 mongdb3.2版本 问题及总结
本文是基于 3.2 版本 的命令行配置 的说明总结查看查询效率查看查询效率时使用explain();里面可以看到是否使用了索引查询,使用了什么索引,及查询耗时等属性。在2.6版本以前可以直接使用explain();就能查到以上但是2.6版本以后再命令行要加上一些参数才能看到,如加上executionStats才能看到查询耗时。如:db.p.find({"name":"lhy
2016-03-06 14:11:59 2722
原创 mongdb drivar for java 3.0版本之mongo-java-driver-3.0.0.jar 使用
本文使用的是最新的3.0版本驱动包。maven地址 org.mongodb mongo-java-driver 3.0.0说明,2.6以后的版本的java驱动和旧的版本有很大区别,本文是基于3.0版本的驱动无需认证连接mongdb服务器import com.mongodb.MongoClient;import com.mongodb.MongoClientOpti
2016-03-06 13:59:44 1387
原创 mongdb 安装 配置及使用 (windows 2.0.2版)
(一)基础入门 关于mongodb的好处,优点之类的这里就不说了,唯一要讲的一点就是mongodb中有三元素:数据库,集合,文档,其中“集合”就是对应关系数据库中的“表”,“文档”对应“行”。 一: 下载 上MongoDB官网 ,我们发现有32bit和64bit,这个就要看你系统了,不过这里有两点注意: ①:根据业界
2016-03-06 13:48:48 606
原创 jetty 嵌入式web服务器使用
要说嵌入式运行Jetty,最常用的还应该是运行一个标准的war文件或者指定一个webapp目录。0. 首先需要添加Jetty运行时webapp的依赖包,下面是一个完整的pom.xml文件[html] view plain copy print?project xmlns="http://maven.apache.org/POM/4
2016-03-05 09:59:19 864
原创 spring 配置文件中dbcp连接池,jdbc连接池 引入 配置文件properties,但是不能用$符号引用里面的变量问题
spring 配置 注意红色字体 (1)懒加载要设为true,(2)引入配置文件 注意不能懒加载不能设为false,否则$不能引入配置文件中的变量第一种配置.jdbc连接池<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in
2016-03-04 22:05:37 7544
原创 maven 父子项目 聚合与继承 生命周期 打包插件 依赖打包 jar pom war
maven 父子关系 副项目中打包方式必须是pom 如 pom,父项目中使用msite-base指定子项目子项目中使用 指定,子项目继承父项目的大部分属性父项目 4.0.0 com.hlzt.msite msite 0.0.1-SNAPSHOT pom msite 0.0.1-SNAPSHOT msite-base
2016-03-04 21:40:55 27434 4
原创 Sitemesh 3 模板框架使用
1 . Sitemesh 3 简介Sitemesh 是一个网页布局和修饰的框架,基于 Servlet 中的 Filter,类似于 ASP.NET 中的‘母版页’技术。参考:百度百科,相关类似技术:Apache Tiles。官网:http://wiki.sitemesh.org/wiki/display/sitemesh/Home 。2 . Sitemesh 3 下载最新版本:3
2016-03-04 12:32:57 1525
原创 spring filter的targetFilterLifecycle作用
在web.xml中进行配置,对所有的URL请求进行过滤,就像"击鼓传花"一样,链式处理。配置分为两种A和B。A:普通配置在web.xml中增加如下内容: permissionFilter com.taobao.riskm.filter.PermissionFilter permissionFilter /*由fil
2016-03-04 10:59:33 12556 5
原创 输入域名,localhost,直接跳转到controller的几种方式:
输入域名,localhost,直接跳转到controller的几种方式:(1),在web.xml中写如下 welcome.html 然后在建立welcome.html,在里面用js或者jsp的request,response方式,或者(2)或者在 index.d 然后建立一个空的index.d文件,最后
2016-03-04 10:55:35 7711
原创 从零开始搭建Node.js, Express, Ejs, Mongodb服务器
第1部分 – 15分钟安装如果你真的是从零开始学,那就花点时间先把环境搭建起来吧。这不难,我用的是Win8,所以这看上去跟那些用Mac和Ubuntu或者其它*nix系统的教程有点区别,不过大致是一样的。第1步 – 安装Node.JS这很容易,进入Node.js官方网站,点击绿色的大Install按钮,它会自动检测你的系统并给你一个正确的安装文件的下载。(如果没有,点击Dow
2016-03-02 21:55:28 2342
原创 node.js 安装配置 npm ,express,ejs模板
本人近端时间看了下node.js,学习是从菜鸟教程 http://www.runoob.com/nodejs/nodejs-tutorial.html 入门。首先讲一下体会,首先自己是个java程序员,刚接触node.js,有点新鲜就去学了,首先是安装windows版的node.js。如果不熟悉环境配置,要选择msi格式的,因为安装的过程中会把环境变量给你配好。好了安装好以后,要安装exp
2016-03-02 21:54:59 8060
原创 使centos7 支持 exfat2格式分区
fat32linux,windows都支持,但是不能支持大于4g的单文件,ntfs和exfat支持,但是读写频繁对分区伤害大。所以最好使用exfat2分区,linux支持exfat2.但是linux不支持。可以通过添加fuse-exfat模块来支持。根据网上资料,整理如下:1、下载fuse-exfat支持软件:exfat支持是通过fuse模块的方式支持的,其项目地址是:
2016-03-02 20:33:35 2406
原创 Javascript:谈谈JS的全局变量跟局部变量
[javascript] view plain copy"text/javascript"> var a = "Hello"; function test(){ var a; alert(a); a = "World"; alert(a); }
2016-03-01 15:48:51 528
图像标注-labelImg_windows_v1.7
2020-10-25
nlp工具 word2vec nltk textblob crf++ 机器人 中文翻译 繁体转简体 关键词 主题 命名体识别 分词 聚类 词性标注 词向量
2018-07-20
CRF++ 0.58.tar.gz源文件for linux和.zip for windows
2017-01-18
jasperReports spring mvc 整合代码
2016-09-02
俄罗斯方块
2014-01-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人