随笔分类 -  Java

Java相關,Java EE
摘要:最近新的專案用到很多的單元測試,對於單元測試有多了一歇的了解。 先寫下大綱,後面分篇寫出總結心得。 1. 單元測試要隔離對外部的關聯 2. Mock, spy 的用法時機差異 3. JUnit 4, 5 針對同一個 class 不同 mothod 的排序方式 4. JUnit test case 的 阅读全文
posted @ 2019-06-04 15:13 Vincent Lee 阅读(241) 评论(0) 推荐(0)
摘要:1 package com.newegg.ec.solr.eventsalestoreservice.tuple; 2 3 import kafka.message.MessageAndMetadata; 4 5 public class DispatcherCell_inProgress extends Cell{ 6 public DispatcherCe... 阅读全文
posted @ 2019-05-16 10:49 Vincent Lee 阅读(202) 评论(0) 推荐(0)
摘要:官方資訊: https://www.eclemma.org/ - 簡短使用範例說明: https://dzone.com/articles/java-code-coverage-in-eclipse - 清除標示: http://bbs.bugcode.cn/t/7076 阅读全文
posted @ 2018-04-13 11:42 Vincent Lee 阅读(480) 评论(0) 推荐(0)
摘要:Lambda 對我而言一很像天書 這個行 Java code 讓我開始有點些微有 Lambda 感覺 https://stackoverflow.com/questions/10706721/convert-liststring-to-listinteger-directly 這一行程式碼做了 3 阅读全文
posted @ 2017-09-08 16:01 Vincent Lee 阅读(197) 评论(0) 推荐(0)
摘要:https://blog.toright.com/posts/725/representational-state-transfer-%E8%BB%9F%E9%AB%94%E6%9E%B6%E6%A7%8B%E9%A2%A8%E6%A0%BC%E4%BB%8B%E7%B4%B9-part-i-%E5 阅读全文
posted @ 2017-06-06 15:31 Vincent Lee 阅读(157) 评论(0) 推荐(0)
摘要:<!DOCTYPE xml> http://rx1226.pixnet.net/blog/post/321584550 阅读全文
posted @ 2017-03-30 17:31 Vincent Lee 阅读(1477) 评论(0) 推荐(0)
摘要:[MSSQL] 欄位開立(2) - decimal, numeric, float, real, money 的抉擇 https://dotblogs.com.tw/henryli/2015/06/13/151557 資料庫黑洞部落格 https://dotblogs.com.tw/henryli/ 阅读全文
posted @ 2017-03-30 09:38 Vincent Lee 阅读(245) 评论(0) 推荐(0)
摘要:重點: That plug-in is not necessary any more. Just go to Preferences > Java > Editor > Content Assist and paste: abcdefghijklmnopqrstuvwxyz. http://stac 阅读全文
posted @ 2017-03-26 21:05 Vincent Lee 阅读(270) 评论(0) 推荐(0)
摘要:stackoverflow 上,問題的解決方式: http://stackoverflow.com/questions/4713890/how-to-disable-programmatically-eclipse-password-required-dialog 1. 公司有設定 firewall 阅读全文
posted @ 2017-03-23 11:15 Vincent Lee 阅读(268) 评论(0) 推荐(0)
摘要:Export *.epf 文件 原文連結: http://www.cnblogs.com/52php/p/5677647.html 阅读全文
posted @ 2017-03-02 11:04 Vincent Lee 阅读(953) 评论(0) 推荐(0)
摘要:中文 Spring 教學 http://hatemegalaxy.blogspot.tw/2014/09/spring-framework-useful-tutorials-for.html 英文 Spring http://www.javatpoint.com/spring-3-mvc-tutor 阅读全文
posted @ 2017-03-02 09:42 Vincent Lee 阅读(173) 评论(0) 推荐(0)
摘要:節錄重點: @ Resource 、@ PostConstruct、@ PreDestro、@PersistenceContext、@Required 都必須聲明相關的 bean 所以如果總是需要按照傳統的方式一條一條配置顯得有些繁瑣和沒有必要,於是spring給我們提供<context:annot 阅读全文
posted @ 2017-03-02 09:08 Vincent Lee 阅读(129) 评论(0) 推荐(0)
摘要:Eclipse 阅读全文
posted @ 2017-02-23 16:52 Vincent Lee 阅读(210) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/zhshulin/article/details/37937365 阅读全文
posted @ 2017-02-16 18:31 Vincent Lee 阅读(216) 评论(0) 推荐(0)
摘要:自己上 ZK 官方論壇提問、別人的回答、自己解決問題後上傳的問題紀錄: http://forum.zkoss.org/question/101152/how-do-i-binding-image-files-on-zul-to-java-controller/ 阅读全文
posted @ 2016-07-07 16:59 Vincent Lee 阅读(214) 评论(0) 推荐(0)
摘要:這次去Interview, 其中有一個公司 把我列為 2/25的考慮對象,在Final 的 1/2, 我被刷掉了。因為第一輪的程式,我稍微google了一下,參考了既有的寫法。即使第二輪我用完全原創的想法還是無法改變第一印象。我的面試官給我的建議:Next time you have your own thought, just go for it. Don't reference other's method.Your own thing is more precious.Lessons Learned 阅读全文
posted @ 2013-10-12 07:22 Vincent Lee 阅读(146) 评论(0) 推荐(0)
摘要:soapUI 測試API 的軟體工具紀錄http://files.cnblogs.com/vincentmylee/soapUIScript%E9%9C%80%E8%A6%81%E8%B3%87%E8%A8%8A%E8%88%87%E6%8F%90%E5%95%8F%E8%A7%A3%E7%AD%94%E7%B4%80%E9%8C%84Vincent.7z 阅读全文
posted @ 2013-08-22 16:47 Vincent Lee 阅读(245) 评论(0) 推荐(0)
摘要:安裝Ant 於 UNIX 阅读全文
posted @ 2013-01-09 15:55 Vincent Lee 阅读(131) 评论(0) 推荐(0)
摘要:solr tutorialhttp://lucene.apache.org/solr/tutorial.htmlsome popular reference book.http://www.solrtutorial.com/DataStax integerated Cassandra and Solrhttp://www.datastax.com/dev/blog/cassandra-with-solr-integration-details 阅读全文
posted @ 2013-01-07 10:45 Vincent Lee 阅读(241) 评论(0) 推荐(0)
摘要:Do You Really Need SQL to Do It All inCassandra?http://maxgrinev.com/2010/07/12/do-you-really-need-sql-to-do-it-all-in-cassandra/簡單說,先把所要的資料選取出來,用選到的資料新建立column family,程式存取新建的column family,類似Materialized Views的做法。 阅读全文
posted @ 2012-12-26 13:24 Vincent Lee 阅读(166) 评论(0) 推荐(0)