In Spring 3, one of the feature of “mvc:annotation-driven“, is support for convert object to/from XML file, if JAXB is in project classpath.In this tutorial, we show you how to convert a return object into XML format and return it back to user via
Sometimes, you project will have dependency on a jar which is not in official maven repository , and maybe it is propriety jar file which will never be part of maven repository . In this case, you have to put it to your localrepository your self to
【轉】Vector與ArrayList區別the following is from:http://blessed24.javaeye.com/blog/7513361. Vector & ArrayList 1) Vector的方法都是同步的(Synchronized),是安全執行緒的(thread-safe),而ArrayList的方法不是,由於線程的同步必然要影響效能,因此,ArrayList的效能比Vector好。 2)
Faceted search has become a critical feature for enhancing findability and the user search experience for all types of search applications. In this article, Solr creator Yonik Seeley gives an introduction to faceted search with Solr.By Yonik
In Spring 3, you can enable “mvc:annotation-driven” to support object conversion to/from JSON format, if Jackson JSON processor is existed on the project classpath.In this tutorial, we show you how to output JSON data from Spring MVC.Technologies
運行tomcat很奇怪的問題 在本機上運行正常,移植到伺服器上出現異常 The CATALINA_HOME environment variable is not defined correctly我部署的伺服器是win2003 64bit作業系統 ,本機是win2003 32bit作業系統 在本機catalina.bat檔案設定set JAVA_OPTS=-Xms512m -Xmx640mset JAVA_OPTS=%JAVA_OPTS% -server -XX:PermSize=512M -
在sping中提供了另一種實現template模式的方法,利用介面回呼函數. (1)TransactionTemplate的範例程式碼: public class TransactionTemplate extends DefaultTransactionDefinition implements InitializingBean{ .......... //進行交易處理的骨架,指明交易處理的順序 public Object execute(TransactionCallback action)