02 2017 档案

摘要:liunx 系统中,命令行中语法:(.后面是冒号:) java -cp .:third.jar MyClass windows 系统中命令行的语法:(.后面是分号;) java -cp .;third.jar MyClass 其中 third.jar 是需要引入的 jar 包,MyClass 是要执 阅读全文
posted @ 2017-02-23 09:23 hapday 阅读(2478) 评论(0) 推荐(0) 编辑
摘要:Eclipse 导入外部项目无法识别为web项目并且无法在部署到tomcat下 1、进入项目目录,找到 .project 文件: 2、找到 <natures> 代码段,在里面加入如下标签内容并保存: <nature>org.eclipse.jem.workbench.JavaEMFNature</n 阅读全文
posted @ 2017-02-22 10:27 hapday 阅读(7150) 评论(0) 推荐(1) 编辑
摘要:linux 查看端口的命令为: netstat 常用的参数有 anp,如: netstat -anp 查看指定的端口,如查看端口 80 是否开启中: netstat -anp | grep 80 备注:Windows 的 CMD 查看端口的命令也是 netstat,如查看所有的 TCP 端口: ne 阅读全文
posted @ 2017-02-17 14:40 hapday 阅读(417) 评论(0) 推荐(0) 编辑
摘要:1、访问控制层(Controller 层)中的方法命名方向是简洁明了,向着自然化语言方向靠拢,比如“更新用户”,建议命名为“updateUser”,而非“updateUserById”,实际上我们更新用户一般都是根据主键 ID 来实现的,所以“updateUserById”更适宜放在 service 阅读全文
posted @ 2017-02-17 11:07 hapday 阅读(6285) 评论(0) 推荐(2) 编辑
摘要:在 server.xml 中的 Connector 标签在加入 URIEncoding="UTF-8" 属性。 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEn 阅读全文
posted @ 2017-02-16 23:03 hapday 阅读(6422) 评论(0) 推荐(0) 编辑
摘要:MyBatis 之会话 Session 执行逻辑 1、SQL 会话工厂构建器类 SqlSessionFactoryBuilder 的 build 方法用于构建 SqlSessionFactory 类的实例; 2、SQL 会话工厂类的实例用于创建 Sql 会话 SqlSession 的实例; 3、SQ 阅读全文
posted @ 2017-02-16 18:41 hapday 阅读(5220) 评论(0) 推荐(0) 编辑
摘要:Creating a new SqlSessionSqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1fa5519] was not registered for synchronization because sync 阅读全文
posted @ 2017-02-16 17:39 hapday 阅读(65538) 评论(2) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2017-02-15 22:39 hapday 阅读(1138) 评论(0) 推荐(0) 编辑
摘要:alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central 阅读全文
posted @ 2017-02-14 19:18 hapday 阅读(1084) 评论(0) 推荐(0) 编辑
摘要:HTML 代码: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Flash在线阅览</title> <script type="text/javascript" src="../st 阅读全文
posted @ 2017-02-14 10:41 hapday 阅读(600) 评论(0) 推荐(0) 编辑
摘要:将此文件放到 Tomcat 的 webapps 中的 ROOT 文件夹下,或者直接放置到所属项目的根目录中。flexpaper 远程访问 flash 资源时首先到域名所对应的根目录下查找 crossdomain.xml 文件,根据此文件的配置确定资源的访问权限。 阅读全文
posted @ 2017-02-14 09:59 hapday 阅读(271) 评论(0) 推荐(0) 编辑
摘要:# mongodb3.2.1 的主配置文件,将此文件放置于 mongodb3.2.1/bin 目录下 # hapday 2016-01-27-16:55 start # 数据文件存放目录 dbpath = /usr/local/mongodb/mongodb3.2.1/data/db # 日志文件存放目录 logpath = /usr/local/mongodb/mongodb3.2.1/lo... 阅读全文
posted @ 2017-02-14 00:05 hapday 阅读(610) 评论(0) 推荐(0) 编辑
摘要:####################配置文件开始################### # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html # *** DO NOT EDIT THI... 阅读全文
posted @ 2017-02-14 00:03 hapday 阅读(369) 评论(0) 推荐(0) 编辑
摘要:# idea jdk7 settings start #JAVA_HOME=/usr/local/jdk/jdk1.7.0_79 #JRE_HOME=$JAVA_HOME/jre #PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin #CLASSPATH=:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOM... 阅读全文
posted @ 2017-02-14 00:02 hapday 阅读(4541) 评论(0) 推荐(0) 编辑
摘要:#!/bin/sh # Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB # This file is public domain and comes with NO WARRANTY of any kind # MySQL daemon start/stop script. # Usuall... 阅读全文
posted @ 2017-02-14 00:00 hapday 阅读(400) 评论(0) 推荐(0) 编辑
摘要:#!/bin/sh # # redis Startup script for Redis Server # # chkconfig: - 80 12 # description: Redis is an open source, advanced key-value store. # # processname: redis-server # config: /etc/redis.... 阅读全文
posted @ 2017-02-13 23:58 hapday 阅读(212) 评论(0) 推荐(0) 编辑
摘要:# hapday start 2016-02-04 #!/bin/bash # description: Tomcat Start Stop Restart # processname: tomcat # chkconfig: 234 20 80 JAVA_HOME=/usr/local/jdk/jdk1.8.0_71 export JAVA_... 阅读全文
posted @ 2017-02-13 23:56 hapday 阅读(217) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash # chkconfig: - 85 15 # description: Tomcat Server basic start/shutdown script # processname: tomcat JAVA_HOME=/usr/local/jdk/jdk1.8.0_65 export JAVA_HOME TOMCAT_HOME=/usr/local/tomcat/... 阅读全文
posted @ 2017-02-13 23:55 hapday 阅读(230) 评论(0) 推荐(0) 编辑
摘要:... 阅读全文
posted @ 2017-02-13 23:49 hapday 阅读(376) 评论(0) 推荐(0) 编辑
摘要:4.0.0 com.smbea.demo WebSocketDemo war 0.0.1-SNAPSHOT WebSocketDemo Maven Webapp http://maven.apache.org 4.3.6.RELEASE 2.7.6 2.6.3 1.9.13 junit juni... 阅读全文
posted @ 2017-02-09 18:18 hapday 阅读(1162) 评论(0) 推荐(0) 编辑
摘要:HTML 代码: JavaScript 代码: 阅读全文
posted @ 2017-02-08 09:25 hapday 阅读(312) 评论(0) 推荐(0) 编辑
摘要:https://repository.sonatype.org/index.html#welcome http://www.ibootstrap.cn/ http://helongfei.com/bootstrap/javascript.html#guodu http://caibaojian.co 阅读全文
posted @ 2017-02-05 13:56 hapday 阅读(218) 评论(0) 推荐(0) 编辑
摘要:package com.smbea.demo.tryCatchFinally; /** * java之finally的用法 * @author hapday * @2017年2月5日 @上午12:21:16 */ public class TryCatchFinallyDemo { public static void main(String[] args) { hasExce... 阅读全文
posted @ 2017-02-05 00:25 hapday 阅读(2235) 评论(0) 推荐(0) 编辑
摘要:1、强引用(Strong Reference)在 Java 中四种引用中是“最强”的,我们平时通过 new 关键字创建的对象都属于强引用,如下面的代码: Person person = new Person();其中的 person 就是一个强引用,只有当它不再被使用后才会被垃圾回收器回收掉。当内存 阅读全文
posted @ 2017-02-04 18:53 hapday 阅读(310) 评论(0) 推荐(0) 编辑
摘要:package com.smbea.demo.str; /** * 字符串类型的对象与引用及字符串常量池详解 * @author hapday * @2017年2月3日 @下午5:01:59 */ public class StringDemo { public static void main(String[] args) { String str = "abc"; // ... 阅读全文
posted @ 2017-02-03 17:04 hapday 阅读(1277) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示