原创 Maven 使用說明
下載,安裝,配置local的maven環境設置開發IDE於maven的關聯maven自身的屬性設定(setting.xml)pom的引用下載,安裝,配置local的maven環境下載路徑:https://maven.apache.org/d
原创 多瀏覽器判斷,切換及使用
總結:對於國內瀏覽器,建議支持IE11以上版本,這種情況下,只需兼容IE,chrome兩種信息查看瀏覽器UA(user-agent): https://www.whoishostingthis.com/tools/user-agent
原创 tomcat 時區設定
編輯catalina.bat ,搜索 set JAVA_OPTS=%JAVA_OPTS%,把這句話改成set JAVA_OPTS=%JAVA_OPTS% -Duser.timezone=GMT+8
原创 mysql server 的一些常用參數
Mysql Row size too large:相關參數: innodb_log_file_size: innodb_strict_mode: innodb_page_size = 32
原创 mybatis入門
配置: Mybatis配置分兩部分,java與sql Sql: <!-- mybatis文件配置,掃描所有mapper.xml文件 --> <bean id="sqlSessionFactory" class="
原创 mysql常用函數
contact contact_wsgroupcontact
原创 nginx鏈接
Doc: http://nginx.org/en/docs/start, stop, base proxy config: http://nginx.org/en/docs/beginners_guide.htmlCore function
原创 mysql 常見錯誤
Lock wait timeout exceeded; try restarting transaction一些信息 1、 鎖等待超時。是當前事務在等待其它事務釋放鎖資源造成的。可以找出鎖資源競爭的表和語句,優化你的SQL,創建索引等,如果
原创 多線程實例
@Component public class UserInsertThread implements Runnable { private List<User> list; private CountDownLatch latch
原创 mysql 常用命令
查看innodb的事務表INNODB_TRX是否有正在鎖定的事務線程 SELECT * FROM information_schema.INNODB_TRX; 如果ID存在於show full processlist裏面的sleep線程中
原创 Spring 常用註解
@ConditionalOnMissingBean
原创 spring 事務
就使用者角度來說,所謂的事務主要分兩方面: 開啓事務: 說明式事務: Spring mvc(傳統web項目): <!-- (事務管理)transaction manager, use JtaTransactionManager for gl
原创 JMS&MQ
base: https://docs.oracle.com/javaee/6/tutorial/doc/bncfa.html RabbitMQ: https://blog.csdn.net/column/details/rabb
原创 nginx鏈接
Doc: http://nginx.org/en/docs/start, stop, base proxy config: http://nginx.org/en/docs/beginners_guide.htmlCore function
原创 Spring 常用註解
@ConditionalOnMissingBean