原创 解決:SCRIPT5011: Can't execute code from a freed script

       這兩天測試項目,項目中使用layer打開一個界面選擇人員,在谷歌瀏覽器操作正常,在ie中報:Can't execute code from a freed script ,一臉懵逼,上網找資料大概瞭解了問題原因,出現這個問題

原创 java 通過密鑰access_token獲取公衆號簽名signature

1.起因 因爲項目要求需要在微信公衆號上鍊接網站,所以需要用到,第一次弄,參考了許多大佬的文章。 2.參考文檔 https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp14211411

原创 thymeleaf將小數轉成整數的方法(去掉小數)

        1.今天碰到一個需求,需要把後臺傳來的某個有小數的字段轉成整數。         2.解決方法 使用 ${#numbers.formatInteger(10.00,0)} 去掉小數部分即可。    

原创 MySQL MySQL 服務正在啓動 . MySQL 服務無法啓動。 服務沒有報告任何錯誤。 請鍵入 NET HELPMSG 3534 以獲得更多的幫助。

今天安裝mysql5.7運行MySQL是無法啓動。出現如下情況 百度好久大概找找解決思路。。 解決方法: 清空mysql下的data文件夾裏所有的文件,在cmd裏運行mysqld --initialize --console命令,如圖 可

原创 error:attempted to return null from a method with a primitive return type (int)

1,起因 今天老大讓改bug,說有個模塊數據提交不了,讓我看看。。。檢查服務器發現這個報錯。。attempted to return null from a method with a primitive return type (int

原创 Removing obsolete files from server... Could not clean server of obsolete files: 前言中不允許有內容。

1.起因 今天運行tomcat時公司停電,開機再次打開tomcatba報以上錯誤。 2.解決方法 (1)找到當前tomcat的文件夾,找到service.xml(路徑Tomcat\conf\service.xml) (2)打開可看到當前s

原创 springBoot報 :Address already in use: bind錯誤

1、起因 昨天運行springboot的項目一直在報這個錯誤,剛開始沒有注意到前面的這個報錯,一直在糾結下面的錯誤: org.mybatis.spring.MyBatisSystemException: nested exceptio

原创 org.springframework.mail.MailAuthenticationException: Authentication failed;解決方法

1.原因 java程序發送郵件時,用戶認證失敗導致如下錯誤: org.springframework.mail.MailAuthenticationException: Authentication failed; nested exc

原创 SpringMVC上傳文件出現400 Bad Request錯誤

1.起因 寫了上傳文件代碼,用postman測試一下報400 Dad Request。 2.原因 看了下資料瞭解到使用SpringMVC上傳文件需要在form表單中添加enctype="multipart/form-data",並且需要在

原创 Java Resources 出現紅色歎號的解決方法

1.原因 可能是因爲build Path 沒有重新指定路徑。 2.解決方法 右鍵項目->Build Path ->Configure Build Path..->Libraries 下出現紅色X的jar包移除即可

原创 SVN檢出項目報:Access restriction: The type 'BASE64Decoder' is not API

    1.起因     今天從SVN裏檢出項目出現個別文件報錯(Access restriction: The type 'BASE64Decoder' is not API (restriction on required libra

原创 java.lang.NoSuchFieldError: INSTANCE 錯誤的解決方法

1.起因 因爲用到短信驗證碼,所以導入了httpclient-xx.jar 和httpcore-xx.jar包。ps:本來項目裏已經有相應版本的jar包,因爲jar包沒有對應的class文件,所以cho重新導入其他版本的jar包。 2.報

原创 Eclipse報:Ambiguous mapping. Cannot map 'XXXController' method

1.起因 今天寫代碼有點粗心了,把Controller中的代碼移動到其他Controller下,忘了註釋原來的代碼,導致這個bug。。。eclipse報:Ambiguous mapping. Cannot map 'XXXControll

原创 Console命令詳解

Firebug控制檯詳解 作者: 阮一峯 出處:http://www.ruanyifeng.com/blog/2011/03/firebug_console_tutorial.html Firebug控制檯詳解 控制

原创 java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path

一、具體問題         昨天把項目提交到svn後更新本地代碼運行項目出現no rxtxSerial in java.library.path的錯誤,百度了一下說是因爲缺少rxtxParallel.dll和rxtxSerial.dll