`
panqili2120
  • 浏览: 88983 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
1. const EventEmitter = require('events').EventEmitter; class Test extends EventEmitter { constructor(msg) { super(); this.on('test', function (data) { this.print('Testing..') }); } print(msg) { console.info(msg) } } new T ...

CentOS安装MySql

官方说明文档http://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/   下载YUM仓库 MYSQL YUM仓库地址:http://repo.mysql.com/yum 5.6的YUM仓库:  http://repo.mysql.com/yum/mysql-5.6-community/el/6/x86_64/mysql-community-release-el6-5.noarch.rpm 安装yum本地仓库 yum localinstall mysql-community-release-el6-5.noarch.rpm p ...
Mybatis中insert、Update操作返回主键   How to get pk after operation of insert, update in mybatis?   两种方式 1. <insert id="insert" parameterType="User" keyProperty="id" >   java代码    调用insert(User u)后 u.getPK()就有值了   2.   不推荐

Jrebel Maven插件

    博客分类:
  • java
Jrebel Maven插件   <plugin> <groupId>org.zeroturnaround</groupId> <artifactId>jrebel-maven-plugin</artifactId> <version>1.1.5</version> <executions> <execution> <id>generate-rebel-xml</id> <phase ...
add the following to your ~/.mavenrc: export JAVA_HOME=/Library/Java/JavaVirtualMachines/{jdk-version}/Contents/Home   http://stackoverflow.com/questions/18813828/why-maven-use-jdk-1-6-but-my-java-version-is-1-7   Exception in thread "main" java.lang.UnsupportedClassVersionError: org ...
Let us see the flow of spring MVC (3.2). I am not going to describe what is M,V,C hope you already know that mess right ? so lets start with the flow… Spring MVC 3.2 Execution Flow Step 1: First request will be received by DispatcherServletStep 2: DispatcherServlet will take the help of Handler ...
    在iOS里面调用通讯录主要有以下两种方式:   一。使用系统自带的通讯录界面     首先需要导入AddressBookUI包   import AddressBookUI   以下是具体代码实现   let addressController:ABPeoplePickerNavigationController = ABPeoplePickerNavigationController(); // 实现ABPeoplePickerNavigationControllerDelegate协议 // addressController.peoplePicker ...
HOW TO INSTALL JDK 7 ON YOSEMITE (10.10) Posted Tuesday, 03 Jun by Gabriel Rinaldi  yosemite, java, 10.10, mac, beta   To install it follow these steps: Download JDK 7 Open the DMG Run pkgutil --expand "/Volumes/JDK 7 Update 60/JDK 7 Update 60.pkg" "/tmp/JDK 7 Update 60. ...
Hunting Memory Leaks in Java http://www.toptal.com/java/hunting-memory-leaks-in-java
finding files by name   finding by file size $ find /usr/share/ -size +10M $ find /mostlybig -size -1M # searching for files that are between 500MB and 5GB. $ find /bigdata -size +500M -size -5G -exec du -sh {} \;  
1. 介绍       2. 安装     进入官网下载最新版本:http:// hbase.apache.org/      下载 #直接下载安装: $ mkdir hbase-install $ cd hbase-install $ wget http://apache.claz.org/hbase/hbase-0.92.1/hbase-0.92.1.tar.gz $ tar xvfz hbase-0.92.1.tar.gz #####或手动安装 $ mkdir hbase-install $ mv hbase-0.94.20.tar.gz hbase-i ...
spring事务无异常回滚 [spring rollback without exception]TransactionInterceptor.CurrentTransactionStatus.RollbackOnly = true或者TransactionInterceptor.currentTransactionStatus().setRollbackOnly();
问题描述:用a.sql文件执行insert,不论是通过pl/sql还是sqlplus @文件名都是中文数据出现乱码。 绝大多数情况是环境变量NLS_LANG的值和数据库字符集不一致导致。   查看环境变量 echo $NLS_LANG   查看数据库字符集 select userenv('language') from dual; 如果二者不一致,修改其一使二者一致。 建议修改NLS_LANG,方便、简单、安全 修改NLS_LNAG,有两种方式 1,临时修改 在当前登录终端执行export NLS_LANG=XX (XX:表示数据库字符集)        本地登录退出后失效 ...
  由于org.springframework.http.converter.StringHttpMessageConverter中默认的编码为ISO-8859-1,而在使用@ResponseBody时SpringMVC会通过这个类对输出的内容进行编码,所以Ajax在SpringMVC的项目中会乱码...   于是解决方案:   ------------------------------------------------------------------------------------------------------------------------ 1. 修改源 ...
1、方法一   char c = 'a'; if((c >= 0x4e00)&&(c <= 0x9fbb)) { System.out.println("是中文"); } 上面的方法很简单,但只能判断是否是中文,但不能判断是否是中文标点。 下面的方法很全面,中文字符标点都可以判断  2、方法二 private static final boolean isChinese(char c) { Character.UnicodeBlock ub = Character.UnicodeBlock.of(c); if ...
Global site tag (gtag.js) - Google Analytics