- 博客(16)
- 资源 (3)
- 收藏
- 关注
原创 【知识库】--spring aop 动态代理--inner private protected 方法失效(212)
私有方法或者保护的方法无效!AspectJ pointcut for annotated PRIVATE methodsDue to the proxy-based nature of Spring's AOP framework, protected methods are by definition not intercepted,neither for JDK proxi
2017-05-27 21:12:59 6237
原创 【感想库】--生气---不管别人对错,我们都要把自己活的更好(206)
被别人爽约or遇到糟心的事--->会有很多情绪:一直要记得:别因为他人的问题影响自己人生的前进; 生气就是拿别人的过错惩罚自己; 不管别人对错,我们都要把自己活的更好; 改善自己的流程;人永远不知道: 不自觉自己是如何阻碍自己
2017-05-21 18:09:21 555
原创 【知识库】--JVM 原理指导(java8 )(208)
1 .class 文件 jvm整体示意2 .class -->到内存3 加载class过程4 内存模型-方法区和堆5 内存模型--pc计数器 栈 本地方法区6 执行器--解释器 ,Just IN Time 编译器 ,hotspot profiler ,GC
2017-05-20 14:05:32 539
原创 【知识库】--Mysql InnoDB 行锁实现 和 表锁实现(205)
两个事务,使用一个主键作为更新条件时,一定会有一个成功一个失败! 上了行锁。事务(Transaction)及其ACID属性事务是由一组SQL语句组成的逻辑处理单元,事务具有以下4个属性,通常简称为事务的ACID属性。原子性(Atomicity):事务是一个原子操作单元,其对数据的修改,要么全都执行,要么全都不执行。一致性(Consistent):在事务开始和完成时,数据都必
2017-05-17 21:58:16 1363
原创 Caused by: org.apache.ibatis.binding.BindingException: Parameter '__frch_item_0' not found. Availabl
Caused by: org.apache.ibatis.binding.BindingException: Parameter '__frch_item_0' not found. Available parameters are [list]原因:设置属性时任何一个字段名字出现错误都会对应不上mysql的column 报出上面的错误
2017-05-14 16:51:01 10963
原创 Caused by: java.sql.SQLException: Column count doesn't match value count at row 1
Caused by: java.sql.SQLException: Column count doesn't match value count at row 1原因:一般是语法拼写错误,漏掉一列或者少分隔符。
2017-05-14 16:50:14 1413
原创 【技能库】--Unsafe 调戏String (intern) (201)
1 通过反射获取unsafe实例2 获取char[]数组变量偏移地址3 获取实例char[]4 unsafe --> (arrayBaseOffset)第一个元素位置 和 每个元素大小(arrayIndexScale) 修改数组5 代码如下 public static Unsafe getUnsafeInstance() throws Exceptio...
2017-05-13 09:24:20 840 1
原创 【积累库】--Java 内部类(静态内部类)作用(198)
普通内部类:1 隐藏2 创建必须依赖外部类对象3 可以访问外部类对象成员4 多重继承,弥补java语言的缺陷(不再受单一继承限制)静态内部类:1创建不依赖外部类对象;2不能访问外部类对象成员;
2017-05-10 09:53:34 348
原创 【技能库】--mysql indexes 索引操作(195)
A database index is a data structure that improves the speed of operations in a table. Indexes can be created using one or more columns, providing the basis for both rapid random lookups and efficient
2017-05-07 15:19:05 430
翻译 【知识库】--mysql COMMIT and ROLLBACK --AUTOCOMMIT(196)
COMMIT and ROLLBACK: These two keywords Commit and Rollback are mainly used for MySQL Transactions.When a successful transaction is completed, the COMMIT command should be issued so that the changes t
2017-05-07 14:28:13 602
原创 【知识库】--mysql 不同系统的安装(195)
1 下载 https://www.mysql.com/downloads/ https://dev.mysql.com/downloads/ 2 linux [root@host]# rpm -i MySQL-5.0.9-0.i386.rpm [root@host]# rpm -i MySQL-client-5.0.9-0.i386.rpm [root@
2017-05-06 16:33:09 505
翻译 【技能库】--mysql Introduction(195)
Mysql数据库A database is a separate application that stores a collection of data. Each database has one or more distinct APIs for creating, accessing, managing, searching and replicating the data it hol
2017-05-06 15:15:46 400
翻译 【知识库】--mysql Shared and Exclusive Locks 共享锁和排它锁(195)
InnoDB implements standard row-level locking where there are two types of locks, shared (S) locks and exclusive (X) locks.A shared (S) lock permits the transaction that holds the lock to read a row.
2017-05-06 07:39:11 792
原创 【知识库】--mysql 表字段修改操作(193)
MySQL 查看约束,添加约束,删除约束 添加列,修改列,删除列查看表的字段信息:desc 表名;查看表的所有信息:show create table 表名;添加主键约束:alter table 表名 add constraint 主键 (形如:PK_表名) primary key 表名(主键字段);添加外键约束:alter table 从表 add constraint 外键
2017-05-04 09:45:16 688
原创 【技能库】--postman json 请求(192)
如下图请求 结构SpringMvc 接受请求格式 @RequestMapping("/submit") @ResponseBody public Data submit(HttpServletRequest request,@RequestBody AnswerResult param) { ResultData success = ResultData.bui
2017-05-03 21:38:12 807
原创 【技能库】--获取当天的0点和23点59分59秒(192)
public static Date todayFirstDate() { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND,
2017-05-03 21:23:27 6414
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人