http://www.itread01.com/articles/1476208207.html 一、打開Tomcat/conf/context.xml文件,在標簽 </ 中加入如下內容: auth="Container" type="Javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" ADVERTISEMENT url="jdbc:mysql://localhost:3306/testDBS?autoReconnect=true&useUnicode=true&characterEncoding=UTF8" username="root" password="root、" maxActive="100" ADVERTISEMENT maxIdle="30" maxWait="10000" /> 參數說明如下: 1)...
發表文章
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
转 spring 配置 datasource 三种方式 http://zyc1006.iteye.com/blog/1339719 博客分类: HibernateSpring springhibernate 本文来自 CSDN 博客,转载请标明出处: http://blog.csdn.net/tl396900/archive/2010/04/09/5467086.aspxhttp://www.linuxso.com/architecture/15550.html 1, 使用 org.springframework.jdbc.datasource.DriverManagerDataSource 说明: DriverManagerDataSource 建立连接是只要有连接就新建一个 connection, 根本没有连接池的作用。 ${jdbc.driverClassName} ${jdbc.url} ${jdbc.username} ${jdbc.password} 2. 使用 org.apache.commons.dbcp.BasicDataSource 说明 : 这是一种推荐说明的数据源配置方式,它真正使用了连接池技术 ...
JTree範例
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
package net.codejava.swing; import javax.swing.JFrame; import javax.swing.JTree; import javax.swing.SwingUtilities; import javax.swing.tree.DefaultMutableTreeNode; public class TreeExample extends JFrame { private JTree tree; public TreeExample() { //create the root node DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root"); //create the child nodes DefaultMutableTreeNode vegetableNode = new DefaultMutableTreeNode("Vegetables"); DefaultMutableTreeNode vegetableNode = new DefaultMutableTreeNode("Vegetables"); vegetableNode.add(new DefaultMutableTreeNode("Capsicum")); ...
穿搭指南
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
原文來自http://fashiongatecrasher.com/fahion/short-men-wearing-guide/ ----------------------------------------------------------------------------------- BY ANGELA FASHION , MEN STYLE TIPS , STYLE TIPS 我不高但是我很時尚!小隻男穿搭指南 常聽到許多人會對自己的天生條件而對穿搭自暴自棄,其實身材不夠好的人,更需要利用穿搭來達到修飾的效果。不只是男生,我也寫過小隻女專題,就連女生也需要因為身高問題而去做穿衣上的修正。 一般來說身高不夠高的男生,在穿搭上通常最擔心兩件事,看起來腿短、頭大顯胖,第二件事就是衣服看起來鬆垮不合身,感覺很老派,今天要介紹的主題,是想給身高矮的男生一點穿搭上的建議。 但是在文章開始之前,我要特別提醒,因為並不知道照片中穿搭者的真實身高,文章裡的照片只是給大家一個穿搭上的概念和示範,當然有很多是男模,無法接受者請先~轉身離開~~ 顏色組合 1. 全身同色系: 身高不夠高的男生,穿搭上的色系盡量以單色系為主,可以在視覺上有一個延伸的感覺,像是全黑或是全白,或是棕色、灰色、橄欖綠等大地色調的深淺搭配,都是經典又時尚的配色。 Photo Source: ble-u.tumblr.com , toyastales ...