- POJO:PO持久化对象,BO业务对象,VO展示对象,DTO远程调用传输对象
- 业务层只调用接口 impl
- Server/Dao层,获取单个对象get,获取多个对象list,计数count。
- POJO对象均需要重写 toString方法。
- POJO对象中的boolean属性 不能以is开头,防止和get方法冲突
- 线程池创建使用 ThreadPoolExecutor(int corePoolSize, int maxnumPoolSize, long keepAliveTime,
TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory,
RejectedExecutionHandler handler)
- 乐观锁,悲观锁
- 数据库,小数类型 为 decimal
- 数据库boolean类型,unsign tinyint,is_前缀