原创 mysql常用函數

contact contact_wsgroupcontact

原创 程序員接活平臺

1-程序員客棧---2-碼市3-英選---4-快碼http://proginn.com   程序員客棧http://www.findcto.com   findctohttp://www.kuaima.co/   快碼衆包https://m

原创 Spring Security自定義登錄頁面

自定義登錄頁面,中心思想是配置form-login標籤的屬性,並且配置過濾條件,可以直接配置頁面,也可以配置Action <http pattern="/css/**" security="none"/> <http pattern="/

原创 Spring Security 簡單的用戶權限判斷

1.URL過濾: <http> <intercept-url pattern="/**" access="hasRole('USER')" /> <form-login /> <logout /> </http>2.添加用戶:

原创 mybatis入門

配置: Mybatis配置分兩部分,java與sql Sql: <!-- mybatis文件配置,掃描所有mapper.xml文件 -->     <bean id="sqlSessionFactory"           class="

原创 mysql 常用命令

查看innodb的事務表INNODB_TRX是否有正在鎖定的事務線程 SELECT * FROM information_schema.INNODB_TRX; 如果ID存在於show full processlist裏面的sleep線程中

原创 多線程實例

@Component public class UserInsertThread implements Runnable { private List<User> list; private CountDownLatch latch

原创 spring 事務

就使用者角度來說,所謂的事務主要分兩方面: 開啓事務: 說明式事務: Spring mvc(傳統web項目): <!-- (事務管理)transaction manager, use JtaTransactionManager for gl

原创 Java 線程池筆記

      我們使用線程的時候就去創建一個線程,這樣實現起來非常簡便,但是就會有一個問題:  如果併發的線程數量很多,並且每個線程都是執行一個時間很短的任務就結束了,這樣頻繁創建線程就會大大降低系統的效率,因爲頻繁創建線程和銷燬線程需要時間

原创 spring 常用aware

spring 常用awareBeanNameAware               獲得到容器中Bean的名稱 BeanFactoryAware            獲得當前bean Factory,從而調用容器的服務 Applicati

原创 mysql 常見錯誤

Lock wait timeout exceeded; try restarting transaction一些信息 1、 鎖等待超時。是當前事務在等待其它事務釋放鎖資源造成的。可以找出鎖資源競爭的表和語句,優化你的SQL,創建索引等,如果

原创 spring security helloword

官方說明文檔https://docs.spring.io/spring-security/site/docs/4.2.4.RELEASE/reference/htmlsingle/#ns-config 添加pom     <dependen

原创 nginx load balancer

 原文鏈接IntroductionLoad balancing across multiple application instances is a commonly used technique for optimizing resour

原创 spring data jpa 錯誤彙總

Not supported for DML operations : 需要添加@Modifying註解 @Modifying @Query("update Company u set u.name = ?1") int updateName

原创 網站常用防禦方式

CSRF: http://blog.csdn.net/stpeace/article/details/53512283Session fixation: https://www.cnblogs.com/davidwang456/p/3593