. 單元測試
. PRC
hprose php
本質(zhì)仍為http
. 連接池
實現(xiàn)需注意同步問題
即取出一個連接時 getConnection 必須同步 (java 方法上加synchronized)
. savepoint
http://blog.csdn.net/largetalk/article/details/6760042
BEGIN;UPDATE ...;SAVEPOINT b1;UPDATE ...;ROLLBACK TO b1;COMMIT;
JAVA
. spring boot
http://blog.csdn.net/lxhjh/article/details/51764604
pom.xml
maven
需注意源的配置
service/controller/entity/repository
sql相關(guān):
jpa
類似hibernate 需entity字段對應(yīng) repository放特殊sql等
mybatis
類似sqlmap 每個實體類需配置mapper/mapper.xml
. 多線程
thread與runnable
thread需繼承 runnable只需實現(xiàn)接口 且runnable利于資源共享 一般用runnable
例如
賣票 實現(xiàn)runnable 票總數(shù)20
new Thread(r).start();
new Thread(r).start();
new Thread(r).start();
開三個線程賣同一個r(20) 不會重復(fù)
如需嚴(yán)格按順序 則需在runnable實現(xiàn)的run方法中加synchronized
新聞熱點
疑難解答