<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    javafan

    2013年8月24日 #

    關(guān)于Tomcat的部署信息整理,包括編碼亂碼問(wèn)題

    1.裝新版本的jdk

     

    2.裝一個(gè)eclipse最基礎(chǔ)版本

     

    3.安裝apache官網(wǎng)的tomcat,我用的是安裝版

     

    4.下載eclipse中的tomcat插件,目前的地址是:http://www.eclipsetotale.com/tomcatPlugin.html

        然后將插件內(nèi)容copy到eclipse的plugins目錄下,重啟eclipse

     

    5.如果沒(méi)有出現(xiàn)小貓圖標(biāo),則那么選擇'Window>Customize Perspective...>Commands',并在'Available command groups'中勾選'Tomcat'

     

    6.在Preferences中配置Tomcat,主要配置Version和Home

     

    7.嘗試跑一下,如果不行,看看 首選項(xiàng) 中Java里的 已安裝的JRE是否使用的跟Tomcat中配置的一致

        如果還不行,再檢查一下Java編譯器中的JDK版本

     

    8.在tomcat中的server.xml中,設(shè)置一下URIEncoding

             <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" URIEncoding="UTF-8"/>

    posted @ 2013-08-24 12:07 明天的明天 閱讀(2051) | 評(píng)論 (2)編輯 收藏

    hibernate二級(jí)緩存

    第一步:添加二級(jí)緩存配置文件ehcache.xml到項(xiàng)目的src目錄

        ehcache.xml文件可以在hibernate-release-4.2.4.Final\project\etc目錄下找到

     

    第二步:配置hibernate.cfg.xml文件

    1、首先添加二級(jí)緩存支持:

    <property name="cache.use_second_level_cache">true</property>

     

    2、添加二級(jí)緩存服務(wù)提供類(lèi):

    <property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>

     

    3、添加需要用到二級(jí)緩存的類(lèi)

    <class-cache usage="read-only" class="com.study.bean.Student"/>

     

    第三步:添加commons-logging-1.1.3.jar,不然會(huì)報(bào)錯(cuò)下載地址:http://apache.dataguru.cn//commons/logging/binaries/commons-logging-1.1.3-bin.zip

     

     

    posted @ 2013-08-24 12:06 明天的明天 閱讀(1385) | 評(píng)論 (0)編輯 收藏

    qq2013 java版(畢業(yè)設(shè)計(jì)源碼 包含服務(wù)端 oracle數(shù)據(jù)庫(kù))

    Java代碼  收藏代碼
    1. /** 
    2.  * 初始化組件 
    3.  */  
    4. private void initComponent() {  
    5.     //提示面板  
    6.     errorTipPane = new ErrorTipPane();  
    7.     // 主面板  
    8.     mainPane = new MainPane();  
    9.     // 底部登錄按鈕面板  
    10.     downPane = new DownPane();  
    11.        
    12.     // 登陸頭像及背景  
    13.     lblLoginHeadimg = new JLabel(new ImageIcon("image/Login/qqhead.png"));  
    14.     lblLoginHeadbkg = new JLabel(new ImageIcon(  
    15.             "image/Login/login_head_white.png"));  
    16.     // 用戶(hù)名文本框  
    17.     jtfAccount = new JTextField("100000");  
    18.     jtfAccount.setBorder(new LineBorder(Color.GRAY, 1));  
    19.     jtfAccount.setFont(new Font("Verdana", Font.PLAIN, 12));  
    20.     jtfAccount.setForeground(Color.black);  
    21.   
    22.     // 密碼輸入框  
    23.     pwdfPassword = new JPasswordField("1234567890  ");  
    24.     pwdfPassword = new JPasswordField("123");  
    25.     pwdfPassword.requestFocus(true);  
    26.     pwdfPassword.setBorder(new LineBorder(Color.GRAY, 1));  
    27.     pwdfPassword.setFont(font);  
    28.     pwdfPassword.setForeground(Color.black);  
    29.     pwdfPassword.setEchoChar('●');  
    30.   
    31.     // 自動(dòng)登陸復(fù)選框  
    32.     chkAutoLogin = JButtonUtil.getIconCheckBox(  
    33.             "image/Login/checkbox_normal.png",  
    34.             "image/Login/checkbox_hover.png",  
    35.             "image/Login/checkbox_press.png",  
    36.             "image/Login/checkbox_selected_hover.png");  
    37.     // 記住密碼復(fù)選框  
    38.     chkRememberPwd = JButtonUtil.getIconCheckBox(  
    39.             "image/Login/checkbox_normal.png",  
    40.             "image/Login/checkbox_hover.png",  
    41.             "image/Login/checkbox_press.png",  
    42.             "image/Login/checkbox_selected_hover.png");  
    43.     // 自動(dòng)登陸標(biāo)簽  
    44.     lblAutoLogin = new JLabel("自動(dòng)登錄");  
    45.     lblAutoLogin.setFont(font);  
    46.     lblAutoLogin.setForeground(Color.black);  
    47.     // 記住密碼標(biāo)簽  
    48.     lblRememberPwd = new JLabel("記住密碼");  
    49.     lblRememberPwd.setFont(font);  
    50.     lblRememberPwd.setForeground(Color.black);  
    51.   
    52.     this.initStatus();  
    53.     this.initButton();  
    54.     this.initPupupMenu();  
    55.        
    56.     jtfAccount.addMouseListener(new MouseAdapter() {  
    57.         @Override  
    58.         public void mouseClicked(MouseEvent e) {  
    59.             if(e.getClickCount()==1||e.getClickCount()==2){  
    60.                 mainPane.remove(errorTipPane);  
    61.                 mainPane.add(downPane);  
    62.                 downPane.setBounds(024138051);  
    63.                 mainPane.updateUI();  
    64.                 mainPane.validate();  
    65.             }  
    66.         }  
    67.     });  
    68.        
    69.     pwdfPassword.addMouseListener(new MouseAdapter() {  
    70.         @Override  
    71.         public void mouseClicked(MouseEvent e) {  
    72.             if(e.getClickCount()==1||e.getClickCount()==2){  
    73.                 mainPane.remove(errorTipPane);  
    74.                 mainPane.add(downPane);  
    75.                 downPane.setBounds(024138051);  
    76.                 mainPane.updateUI();  
    77.                 mainPane.validate();  
    78.             }  
    79.         }  
    80.     });  
    81. }  

     

    下載地址:http://yuncode.net/code/c_5204f5d84703a42

    posted @ 2013-08-24 12:05 明天的明天 閱讀(1956) | 評(píng)論 (1)編輯 收藏

    主站蜘蛛池模板: 亚洲综合精品香蕉久久网| 亚洲冬月枫中文字幕在线看 | 免费手机在线看片| 亚洲综合色视频在线观看| 久章草在线精品视频免费观看| 亚洲精品日韩中文字幕久久久| 成人免费视频软件网站| 国产精品福利片免费看| 亚洲H在线播放在线观看H| 亚洲国产激情一区二区三区| 99久久国产免费-99久久国产免费| 亚洲欧洲AV无码专区| 国产亚洲欧洲精品| 成人免费视频国产| 日韩精品无码免费一区二区三区 | 亚洲w码欧洲s码免费| 成年免费大片黄在线观看com| 久久久久亚洲AV无码观看| 亚洲国产aⅴ综合网| 中文字幕乱码免费视频| 一级毛片高清免费播放| 亚洲国产综合精品中文第一| 亚洲美女又黄又爽在线观看| 性一交一乱一视频免费看| 最好免费观看高清在线| 国产精品亚洲一区二区三区久久| 亚洲国产精品不卡在线电影| 免费成人av电影| 亚色九九九全国免费视频| a国产成人免费视频| 特级毛片aaaa免费观看| 亚洲日韩精品A∨片无码加勒比| 亚洲AV无码不卡无码| 久久亚洲精品无码播放| 国产麻豆剧传媒精品国产免费| 日本免费一区二区三区| 成全高清在线观看免费| 一区二区三区免费视频播放器| 亚洲欧洲免费无码| 亚洲中文字幕精品久久| 亚洲国产日韩在线成人蜜芽|