♥ 最新消息 ♥

♨ 好吃好玩,民宿體驗,試吃 ~ 歡迎合作邀約 

E-Mail : luckyboy7527@hotmail.com   LINE ID:raylee0527

歡迎加入粉絲專頁: 瑞與瑪姬 ♫ 趴趴走黑白吃 


[月子餐試吃心得] 玉膳坊,懷恩,藍田,康和,禾馨芽果,荷風,好婆婆,悅子

[長灘島] 五日遊行程 (持續更新中)

 [日本]大阪, 京都, 姬路, 奈良五日自由行

 [泰國]蘇美島蜜月旅行七日遊記

 [台灣]澎湖三日自由行

禁止改作,歡迎轉貼但請註明出處.

 

這次試吃的月子餐有八間,分別是玉膳坊、懷恩、藍田、康和、禾馨芽果、荷風、好婆婆、悅子

此篇的重點是放在這幾間共同的評比,除此之外還有每間各自地介紹喔!

, , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3286.JPG

這次試吃的是  悅子

, , , , , , , , , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3250.JPG

這次試吃的是  好婆婆

, , , , , , , , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3224.JPG

這次試吃的是  荷風

, , , , , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3199.JPG

這次試吃的是  禾馨芽果

, , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3166.JPG

這次試吃的是  康和

, , , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3125.JPG

這次試吃的是  藍田

, , , , , , , , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3106.JPG

這次試吃的是   懷恩

, , , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

CIMG3075.JPG

這次試吃的是  玉膳坊

, , , , , , , , , , , , , , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC3508.JPG

, , , , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

下拉1的資料來源是DB, 下拉2內容是我寫死的

如果你不會或是沒寫過,可以參考這個範例,這不是唯一個方法,但是是可行的方法(其實這寫法滿笨的XD)

,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC4185.JPG

_DSC4183.JPG

, ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC4238.JPG

_DSC4239.JPG

, , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC4228.JPG

_DSC4227.JPG

, ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC4223.JPG

_DSC4224.JPG

, ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC4213.JPG

最近收齊了整套真劍鬼2 , 跟大家分享一下 

, ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

page.jpg

一陣子沒跟大家分享了,今天跟大家推薦一個好吃的米布丁!克朗奇米布丁

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC3165.JPG

今天跟大家分享好吃的宅配美味甜點! 

, , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()

_DSC2926.JPG

跟大家分享一下好吃鳳梨酥

, , , , ,

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(1) 人氣()

原文:http://jaitechwriteups.blogspot.tw/2007/01/how-to-read-properties-file-in-web.html

SampleApp.war
   |
   |-------- myApp.properties
   |
   |-------- WEB-INF
                |
                |---- classes
                         |
                         |----- org
                                 |------ myApp
                                           |------- MyPropertiesReader.class
                                           

Let's assume that you want to read the property named "abc" present in the properties file:

----------------
myApp.properties:
----------------
abc=some value
xyz=some other value


Let's consider that the class org.myApp.MyPropertiesReader present in your application wants to read the property. Here's the code for the same:
package org.myapp;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Simple class meant to read a properties file
 * 
 * @author Jaikiran Pai
 * 
 */
public class MyPropertiesReader {

    /**
     * Default Constructor
     * 
     */
    public MyPropertiesReader() {

    }

    /**
     * Some Method
     * 
     * @throws IOException
     * 
     */
    public void doSomeOperation() throws IOException {
        // Get the inputStream
        InputStream inputStream = this.getClass().getClassLoader()
                .getResourceAsStream("myApp.properties");

        Properties properties = new Properties();

        System.out.println("InputStream is: " + inputStream);

        // load the inputStream using the Properties
        properties.load(inputStream);
        // get the value of the property
        String propValue = properties.getProperty("abc");

        System.out.println("Property value is: " + propValue);
    }

}



Pretty straight-forward. Now suppose the properties file is not at the root of the application, but inside a folder (let's name it config) in the web application, something like:

SampleApp.war
   |
   |-------- config
   |           |------- myApp.properties   
   |           
   |
   |-------- WEB-INF
                |
                |---- classes
                         |
                         |----- org
                                 |------ myApp
                                           |------- MyPropertiesReader.class
                                           


There will just be one line change in the above code:


  public void doSomeOperation() throws IOException {
        //Get the inputStream-->This time we have specified the folder name too.
        InputStream inputStream = this.getClass().getClassLoader()
                .getResourceAsStream("config/myApp.properties");
        
        Properties properties = new Properties();
         
        System.out.println("InputStream is: " + inputStream);
        
        //load the inputStream using the Properties
        properties.load(inputStream);
        //get the value of the property
        String propValue = properties.getProperty("abc");
        
        System.out.println("Property value is: " + propValue);
    }

Posted by 瑞與瑪姬 at 痞客邦 PIXNET Guestbook(0) 人氣()