Properties配置文件讀取相關(guān)java知識(shí)

** 首發(fā)于www.dongxiaoxia.xyz **

一.getResourceAsStream方法使用

**這里的getResourceAsStream主要是針對(duì)ClassClassLoader而言的 **

  1. Class.getResourceAsStream(String path): path 不以’/'開(kāi)頭時(shí)默認(rèn)是從此類(lèi)所在的包下取資源,以’/'開(kāi)頭則是從ClassPath根下獲取闷供。其只是通過(guò)path構(gòu)造一個(gè)絕對(duì)路徑凹嘲,最終還是由ClassLoader獲取資源缀皱。
  2. Class.getClassLoader.getResourceAsStream(String path):默認(rèn)則是從ClassPath根下獲取嫉嘀,path不能以’/'開(kāi)頭砾莱,最終是由ClassLoader獲取資源槽片。
  3. ServletContext. getResourceAsStream(String path):默認(rèn)從WebAPP根目錄下取資源氏捞,Tomcat下path是否以’/'開(kāi)頭無(wú)所謂碧聪,當(dāng)然這和具體的容器實(shí)現(xiàn)有關(guān)。

獲取Class方法
1.XX.class
2.this.getClass()
獲取ClassLoader方法
1.Thread.currentThread().getContextClassLoader()
2.Class.getClassLoader

**getResourceAsStream 用法大致有以下幾種: **

第一: 要加載的文件和.class文件在同一目錄下液茎,例如:com.x.y 下有類(lèi)me.class ,同時(shí)有資源文件myfile.xml
那么逞姿,應(yīng)該有如下代碼:
me.class.getResourceAsStream("myfile.xml");
第二:在me.class目錄的子目錄下,例如:com.x.y 下有類(lèi)me.class ,同時(shí)在 com.x.y.file 目錄下有資源文件myfile.xml
那么捆等,應(yīng)該有如下代碼:
me.class.getResourceAsStream("file/myfile.xml");
第三:不在me.class目錄下滞造,也不在子目錄下,例如:com.x.y 下有類(lèi)me.class ,同時(shí)在 com.x.file 目錄下有資源文件myfile.xml
那么栋烤,應(yīng)該有如下代碼:
me.class.getResourceAsStream("/com/x/file/myfile.xml");
總結(jié)一下谒养,可能只是兩種寫(xiě)法
第一:前面有 “ / ”
“ / ”代表了工程的根目錄,例如工程名叫做myproject明郭,“ / ”代表了myproject
me.class.getResourceAsStream("/com/x/file/myfile.xml");
第二:前面沒(méi)有 “ / ”
代表當(dāng)前類(lèi)的目錄
me.class.getResourceAsStream("myfile.xml");
me.class.getResourceAsStream("file/myfile.xml");
缺點(diǎn):
getResourceAsStream讀取的文件路徑只局限與工程的源文件夾中买窟,包括在工程src根目錄下,以及類(lèi)包里面任何位置薯定,但是如果配置文件路徑是在除了源文件夾之外的其他文件夾中時(shí)始绍,該方法是用不了的。

二.Properties配置文件的讀取

1.使用Apache Commons Configuration讀取配置信息

第三方標(biāo)準(zhǔn)jar包话侄,容易使用亏推,擁有眾多功能,不用重復(fù)造輪子,但是為了讀取一個(gè)配置文件就要引入一個(gè)jar包時(shí)就要考慮一下了年堆。

2.Spring ResourceLoader

Spring 能支持入?yún)⒙窂降暮芏喾绞酵毯迹ㄒ?" /"、"classpath" 開(kāi)頭变丧。
如果你想在項(xiàng)目中使用 Spring 提供的默認(rèn)配置文件載入實(shí)現(xiàn)芽狗,可以這樣書(shū)寫(xiě)你的代碼。

ResourceLoader resourceLoader = new DefaultResourceLoader();
Resource resource = resourceLoader.getResource("log4j.properties");
Properties props = new Properties();
 props.load(resource.getInputStream());

缺點(diǎn):依賴(lài)于Spring框架痒蓬,難以通用童擎, 如果用Spring框架應(yīng)該用Spring統(tǒng)一管理配置文件曼月,而不是當(dāng)作一個(gè)工具類(lèi)使用。

3.通過(guò) java.util.ResourceBundle 對(duì)象 操作

通過(guò)該方式僅能讀取配置文件而已柔昼,不能進(jìn)行寫(xiě)操作。示例:

// ResourceBundle rb = ResourceBundle.getBundle("配置文件相對(duì)工程根目錄的相對(duì)路徑(不含擴(kuò)展名)");
ResourceBundle rb = ResourceBundle.getBundle("config");
String name = rb.getString("name");

java自帶的類(lèi)炎辨,使用非常簡(jiǎn)單捕透,代碼量還少。但是功能略微簡(jiǎn)單碴萧。

4.通過(guò)Properties對(duì)象手動(dòng)寫(xiě)個(gè)工具類(lèi)

通過(guò)Properties對(duì)象自定義封裝乙嘀,更能滿足自己需要的要求。

 /**
     * 根據(jù)Properties配置文件名稱(chēng)獲取配置文件對(duì)象
     *
     * @param propsFileName Properties配置文件名稱(chēng)(從ClassPath根下獲绕朴鳌)
     * @return Properties對(duì)象
     */
    private Properties getProperties(String propsFileName) {
        if (propsFileName == null || propsFileName.equals("")) throw new IllegalArgumentException();
        Properties properties = new Properties();
        InputStream inputStream = null;
        try {
            try {
                if (propsFileName.lastIndexOf(PROPERTY_FILE_SUFFIX) == -1) {//加入文件名后綴
                    propsFileName += PROPERTY_FILE_SUFFIX;
                }
                //寫(xiě)法1:
//                inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(propsFileName);
                //寫(xiě)法2:
//                URL url = Thread.currentThread().getContextClassLoader().getResource(propsFileName);
//                inputStream = url.openStream();
                //寫(xiě)法3:
//                inputStream = PropertiesLoader.class.getClassLoader().getResourceAsStream(propsFileName);
                //寫(xiě)法4:
//                URL url = PropertyUtil.class.getClassLoader().getResource(propsFileName);
//                inputStream = url.openStream();
                //寫(xiě)法5:
                inputStream = PropertiesLoader.class.getResourceAsStream("/" + propsFileName);
                if (null != inputStream) properties.load(inputStream);
            } finally {
                if (null != inputStream) {
                    inputStream.close();
                }
            }
        } catch (IOException e) {
//            LOGGER.error("加載屬性文件出錯(cuò)!", e);
            e.printStackTrace();
            throw new RuntimeException(e.getMessage(), e);
        }
        return properties;
    }

三.jar包讀取外部和內(nèi)部配置文件

1.獲取文件的方式

把項(xiàng)目打成jar包發(fā)布后jar中的文件就不能通過(guò)File file=new File("文件路徑")的方式來(lái)讀取文件了虎谢。
錯(cuò)誤方式:

URL url = DBHelper.class.getClassLoader().getResource(configName);
URL url = DBHelper.class.getResource("/db.properties");

從依賴(lài)的Jar包中讀取文件, Jar包內(nèi)的文件是無(wú)法用File讀取的,只能用Stream的方式讀取曹质。
正確方式:

InputStream inputStraean = DBHelper.class.getClassLoader().getResourceAsStream("db.properties")

結(jié)論:不能傳文件路徑婴噩,只能傳輸入流

2.測(cè)試獲取文件的各種情況

待測(cè)試jar包目錄:


Alt text

測(cè)試目錄引用進(jìn)來(lái)的maven目錄


Alt text
Alt text

測(cè)試項(xiàng)目目錄
Alt text

待測(cè)試jar包運(yùn)行結(jié)果:


Alt text

測(cè)試項(xiàng)目運(yùn)行結(jié)果
Alt text

根據(jù)測(cè)試得到的結(jié)果:

  1. 項(xiàng)目與項(xiàng)目引入jar包的文件都是在classpath下面的,也就是可以通過(guò)getResourceAsStream獲取羽德,jar包與項(xiàng)目的獲取方法沒(méi)有分別几莽,也就是說(shuō),獲取jar內(nèi)部與外部文件的方式是一樣的宅静。
  2. 如果項(xiàng)目與jar包在相對(duì)于classpath下有同樣的文件章蚣,則以項(xiàng)目的文件覆蓋jar包里面的文件。
  3. jar包里面沒(méi)有d.properties姨夹,所有jar包里面測(cè)試運(yùn)行沒(méi)有找到纤垂,但是到了項(xiàng)目里面,在項(xiàng)目下創(chuàng)建d.properties,可是可以發(fā)現(xiàn)該文件的磷账。
  4. 項(xiàng)目可以獲取項(xiàng)目的文件
    項(xiàng)目可以獲取jar包里面的文件
    jar包可以獲取項(xiàng)目的文件
    jar包可以獲取jar包里面的文件
    項(xiàng)目與jar包同時(shí)存在該文件峭沦,則以項(xiàng)目的文件優(yōu)先

因此,如果開(kāi)發(fā)一個(gè)庫(kù)或jar包够颠,可以保留一份默認(rèn)配置在jar包里面熙侍,也可以把配置文件放到客戶(hù)端配置,檢測(cè)時(shí)做處理履磨,如果客戶(hù)端配置該文件蛉抓,則以客戶(hù)端的配置為先,沒(méi)有找到就用默認(rèn)配置文件剃诅,或者別的處理(拋異常等巷送。。矛辕。)笑跛,slf4j配置我猜也是這樣子吧=_=付魔。

四.Properties配置文件讀取工具類(lèi)

package xyz.dongxiaoxia.commons.utils;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;
import java.util.logging.Logger;

/**
 * Properties文件載入工具,可載入多個(gè)Properties文件飞蹂,相同屬性在最后載入的文件中的值將會(huì)覆蓋之前的值几苍,但以System的Property優(yōu)先。
 *
 * @author dongxiaoxia
 * @create 2016-07-01 23:03
 */
public class PropertiesLoader {

    private static Logger logger = Logger.getLogger(PropertiesLoader.class.getName());

    /**
     * .properties屬性文件名后綴
     */
    public static final String PROPERTY_FILE_SUFFIX = ".properties";

    private final Properties properties;

    public PropertiesLoader(String... propsFileNames) {
        properties = loadProperties(propsFileNames);
    }

    public PropertiesLoader(String propsFileName) {
        properties = getProperties(propsFileName);
    }

    public PropertiesLoader(InputStream inputStream) {
        properties = loadProperties(inputStream);
    }

    public Properties getProperties() {
        return properties;
    }

    /**
     * 取出Property陈哑,但與System的Property優(yōu)先妻坝,取不到返回空字符串。
     *
     * @param key
     * @return
     */
    private String getValue(String key) {
        String systemProperty = System.getProperty(key);
        if (systemProperty != null) {
            return systemProperty;
        }
        if (properties.containsKey(key)) {
            return properties.getProperty(key);
        }
        return "";
    }

    /**
     * 取出String類(lèi)型的Property惊窖,但與System的Property優(yōu)先刽宪,如果都為NUll則拋出異常。
     *
     * @param key
     * @return
     */
    public String getProperty(String key) {
        String value = getValue(key);
        if (value == null) {
            throw new NoSuchElementException();
        }
        return value;
    }

    /**
     * 取出String類(lèi)型的Property界酒,但以System的Property優(yōu)先圣拄,如果都為Null則返回Default值。
     *
     * @param key
     * @param defaultValue
     * @return
     */
    public String getProperty(String key, String defaultValue) {
        String value = getValue(key);
        return value != null ? value : defaultValue;
    }

    /**
     * 取出Integer類(lèi)型的Property毁欣。但以System的Property優(yōu)先庇谆,如果都為null或內(nèi)容錯(cuò)誤則拋異常。
     *
     * @param key
     * @return
     */
    public Integer getInteger(String key) {
        String value = getValue(key);
        if (value == null) {
            throw new NoSuchElementException();
        }
        return Integer.valueOf(value);
    }

    /**
     * 取出Integer類(lèi)型的Property署辉,但以System的Property優(yōu)先族铆。如果都為null則返回默認(rèn)值,如果內(nèi)容錯(cuò)誤則拋異常哭尝。
     *
     * @param key
     * @param defaultValue
     * @return
     */
    public Integer getInteger(String key, Integer defaultValue) {
        String value = getValue(key);
        return value != null ? Integer.valueOf(value) : defaultValue;
    }

    /**
     * 取出Double類(lèi)型的Property哥攘,但以System的Property優(yōu)先,如果都為null或內(nèi)容錯(cuò)誤則拋異常材鹦。
     *
     * @param key
     * @return
     */
    public Double getDouble(String key) {
        String value = getValue(key);
        if (value == null) {
            throw new NoSuchElementException();
        }
        return Double.valueOf(value);
    }

    /**
     * 取出Double類(lèi)型的Property逝淹,但以System的Property優(yōu)先,如果都為null則返回默認(rèn)值桶唐,如果內(nèi)容錯(cuò)誤則拋異常栅葡。
     *
     * @param key
     * @param defaultValue
     * @return
     */
    public Double getDouble(String key, Double defaultValue) {
        String value = getValue(key);
        return value != null ? Double.valueOf(value) : defaultValue;
    }

    /**
     * 取出Boolean類(lèi)型的Property,但以System的Property優(yōu)先尤泽,如果都為null則拋出異常欣簇,如果內(nèi)容不是true/false則返回false。
     *
     * @param key
     * @return
     */
    public Boolean getBoolean(String key) {
        String value = getValue(key);
        if (value == null) {
            throw new NoSuchElementException();
        }
        return Boolean.valueOf(value);
    }

    /**
     * 取出Boolean類(lèi)型的Property坯约,但以System的Property優(yōu)先熊咽,如果都為null則返回默認(rèn)值,如果內(nèi)容不為true/false則返回false闹丐。
     *
     * @param key
     * @param defaultValue
     * @return
     */
    public Boolean getBoolean(String key, boolean defaultValue) {
        String value = getValue(key);
        return value != null ? Boolean.valueOf(value) : defaultValue;
    }

    public Set<Object> getAllKey() {
        return properties.keySet();
    }

    public Collection<Object> getAllValues() {
        return properties.values();
    }

    public Map<String, Object> getAllKeyValue() {
        Map<String, Object> mapAll = new HashMap<>();
        Set<Object> keys = getAllKey();
        for (Object key1 : keys) {
            String key = key1.toString();
            mapAll.put(key, properties.get(key));
        }
        return mapAll;
    }

    /**
     * 根據(jù)Properties配置文件名稱(chēng)獲取配置文件對(duì)象
     *
     * @param propsFileName Properties配置文件名稱(chēng)(從ClassPath根下獲群崤埂) 可以不帶擴(kuò)展名
     *                      eg.根目錄下有個(gè)common.properties,那么可以傳“common”或者“common.properties”
     *                      根目錄下有個(gè)config文件夾,里面存在common.properties,那么可以傳“config/common”或者“config/common.properties”
     * @return Properties對(duì)象
     */
    private Properties getProperties(String propsFileName) {
        if (propsFileName == null || propsFileName.equals("")) throw new IllegalArgumentException();
        Properties properties = new Properties();
        InputStream inputStream = null;
        try {
            try {
                if (propsFileName.lastIndexOf(PROPERTY_FILE_SUFFIX) == -1) {//加入文件名后綴
                    propsFileName += PROPERTY_FILE_SUFFIX;
                }
                //寫(xiě)法1:
//                inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(propsFileName);
                //寫(xiě)法2:
//                URL url = Thread.currentThread().getContextClassLoader().getResource(propsFileName);
//                inputStream = url.openStream();
                //寫(xiě)法3:
                inputStream = PropertiesLoader.class.getClassLoader().getResourceAsStream(propsFileName);
                //寫(xiě)法4:
//                URL url = PropertyUtil.class.getClassLoader().getResource(propsFileName);
//                inputStream = url.openStream();
                //寫(xiě)法5:
//                inputStream = PropertiesLoader.class.getResourceAsStream("/" + propsFileName);
                if (null != inputStream) properties.load(inputStream);
            } finally {
                if (null != inputStream) {
                    inputStream.close();
                }
            }
        } catch (IOException e) {
//            LOGGER.error("加載屬性文件出錯(cuò)!", e);
            e.printStackTrace();
            throw new RuntimeException(e.getMessage(), e);
        }
        return properties;
    }

    /**
     * 載入多個(gè)文件
     *
     * @param propsFileNames
     * @return
     */
    private Properties loadProperties(String... propsFileNames) {
        Properties pros = new Properties();
        for (String propsFileName : propsFileNames) {
            InputStream inputStream = null;
            try {
                inputStream = PropertiesLoader.class.getClassLoader().getResourceAsStream(propsFileName);
                pros.load(inputStream);
            } catch (Exception e) {
                logger.info("Could not load properties from path:" + propsFileName + "," + e.getMessage());
            } finally {
                try {
                    if (inputStream != null) {
                        inputStream.close();
                    }
                } catch (IOException e) {
                    logger.info(e.getMessage());
                }
            }
        }
        return pros;
    }

    /**
     * 根據(jù)輸入流載入Properties對(duì)象
     *
     * @param inputStream
     * @return
     */
    private Properties loadProperties(InputStream inputStream) {
        Properties pros = new Properties();
//        pros.load(inputStream);
        try (InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "UTF-8")) {
            pros.load(inputStreamReader);
        } catch (Exception e) {
            logger.info(e.getMessage());
        }
        return pros;
    }
}


更多請(qǐng)查看GItHub PropertiesLoader類(lèi)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末卿拴,一起剝皮案震驚了整個(gè)濱河市衫仑,隨后出現(xiàn)的幾起案子梨与,更是在濱河造成了極大的恐慌,老刑警劉巖文狱,帶你破解...
    沈念sama閱讀 219,490評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件粥鞋,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡瞄崇,警方通過(guò)查閱死者的電腦和手機(jī)陷虎,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,581評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門(mén),熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)杠袱,“玉大人,你說(shuō)我怎么就攤上這事窝稿¢垢唬” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 165,830評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵伴榔,是天一觀的道長(zhǎng)纹蝴。 經(jīng)常有香客問(wèn)我,道長(zhǎng)踪少,這世上最難降的妖魔是什么塘安? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,957評(píng)論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮援奢,結(jié)果婚禮上兼犯,老公的妹妹穿的比我還像新娘。我一直安慰自己集漾,他們只是感情好切黔,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,974評(píng)論 6 393
  • 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著具篇,像睡著了一般纬霞。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上驱显,一...
    開(kāi)封第一講書(shū)人閱讀 51,754評(píng)論 1 307
  • 那天诗芜,我揣著相機(jī)與錄音,去河邊找鬼埃疫。 笑死伏恐,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的熔恢。 我是一名探鬼主播脐湾,決...
    沈念sama閱讀 40,464評(píng)論 3 420
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼叙淌!你這毒婦竟也來(lái)了秤掌?” 一聲冷哼從身側(cè)響起愁铺,我...
    開(kāi)封第一講書(shū)人閱讀 39,357評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎闻鉴,沒(méi)想到半個(gè)月后茵乱,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,847評(píng)論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡孟岛,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,995評(píng)論 3 338
  • 正文 我和宋清朗相戀三年瓶竭,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片渠羞。...
    茶點(diǎn)故事閱讀 40,137評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡斤贰,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出次询,到底是詐尸還是另有隱情荧恍,我是刑警寧澤,帶...
    沈念sama閱讀 35,819評(píng)論 5 346
  • 正文 年R本政府宣布屯吊,位于F島的核電站送巡,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏盒卸。R本人自食惡果不足惜骗爆,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,482評(píng)論 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望蔽介。 院中可真熱鬧摘投,春花似錦、人聲如沸虹蓄。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 32,023評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)武花。三九已至圆凰,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間体箕,已是汗流浹背专钉。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 33,149評(píng)論 1 272
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留累铅,地道東北人跃须。 一個(gè)月前我還...
    沈念sama閱讀 48,409評(píng)論 3 373
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像娃兽,于是被迫代替她去往敵國(guó)和親菇民。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,086評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容

  • Spring Cloud為開(kāi)發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見(jiàn)模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn)第练,斷路器阔馋,智...
    卡卡羅2017閱讀 134,672評(píng)論 18 139
  • Spring Boot 參考指南 介紹 轉(zhuǎn)載自:https://www.gitbook.com/book/qbgb...
    毛宇鵬閱讀 46,826評(píng)論 6 342
  • 1. Java基礎(chǔ)部分 基礎(chǔ)部分的順序:基本語(yǔ)法,類(lèi)相關(guān)的語(yǔ)法娇掏,內(nèi)部類(lèi)的語(yǔ)法呕寝,繼承相關(guān)的語(yǔ)法,異常的語(yǔ)法婴梧,線程的語(yǔ)...
    子非魚(yú)_t_閱讀 31,644評(píng)論 18 399
  • Android 自定義View的各種姿勢(shì)1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 172,187評(píng)論 25 707
  • 第一次讀渡邊淳一的作品是《失樂(lè)園》下梢,后來(lái)又讀了這位善于描寫(xiě)性愛(ài)作家的《男人這東西》和《女人這東西》,很喜歡這位...
    我是馬依云閱讀 2,531評(píng)論 0 0