quartz學(xué)習(xí)筆記之界面配置(二)

本文內(nèi)容

通過(guò)xml配置一個(gè)調(diào)度器Scheduler离斩,所有的任務(wù)通過(guò)該調(diào)度器來(lái)進(jìn)行調(diào)度兴垦,結(jié)合官方提供的數(shù)據(jù)結(jié)構(gòu)以及調(diào)度實(shí)現(xiàn)來(lái)達(dá)到前端控制定時(shí)器的目的嗅定。

調(diào)度器Scheduler的作用

調(diào)度器是Quartz的核心組成部分腺毫,其作用是調(diào)度Job能夠被Trigger觸發(fā),是Quartz的驅(qū)動(dòng)摸袁。
下圖是列出來(lái)的定時(shí)器的核心概念、組成部分以及


Quartz-2019713202637

調(diào)度器的創(chuàng)建

Scheduler的實(shí)現(xiàn)類有以下幾個(gè):


Scheduler的實(shí)現(xiàn)類-201962701223
  • RemoteScheduler: 遠(yuǎn)程調(diào)度器义屏;
  • StdScheduler:默認(rèn)標(biāo)準(zhǔn)調(diào)度器(最為常用的)靠汁;
  • RemoteMBeanScheduler:抽象類,
    • JBoss4RMIRemoteMBeanScheduler:是抽象類<code>RemoteMBeanScheduler</code> 的實(shí)現(xiàn)類
      調(diào)度器的創(chuàng)建主要是通過(guò)其工廠模式創(chuàng)建的湿蛔,創(chuàng)建方式有:
  • StdSchedulerFactory膀曾;
    • 使用一組參數(shù)(java.util.Properties)來(lái)創(chuàng)建和初始化Quartz調(diào)度器;
    • 配置參數(shù)一般在quartz.properties中
    • 調(diào)用getScheduler方法就能創(chuàng)建和初始化調(diào)度器對(duì)象阳啥;
    • 通過(guò)<code>new StdSchedulerFactory().getScheduler();</code> 來(lái)獲取調(diào)度器添谊。
  • DirectSchedulerFactory;

定時(shí)器創(chuàng)建以后察迟,可以進(jìn)行增加斩狱、刪除以及顯示Job和Trigger,對(duì)Job進(jìn)行暫停/恢復(fù)等操作扎瓶,調(diào)用了.start()方法后所踊,Scheduler才正式開(kāi)始執(zhí)行Job和Trigger;

StdSchedulerFactory

StdSchedulerFactory依賴于一系列屬性決定如何產(chǎn)生Scheduler概荷,提供配置信息的方式如下:

  • 通過(guò)java.util.Properties屬性實(shí)例秕岛;
  • 通過(guò)外部屬性文件提供;
  • 通過(guò)含有屬性文件內(nèi)容的java.io.InputStream提供误证;
// 1. 無(wú)參方法继薛,會(huì)優(yōu)先加載當(dāng)前工作目錄的quartz.properties,如果未找到愈捅,則試圖從系統(tǒng)的classpath中加載該配置文件遏考。
        factory.initialize();
// 2.通過(guò)外部屬性文件提供
//        factory.initialize("lx-quartz-scheduler.properties");
// 3. 通過(guò)含有屬性文件內(nèi)容的java.io.InputStream提供
//        factory.initialize(new FileInputStream(new File("lx-quartz-scheduler.properties")));
scheduler = factory.getScheduler("quartzScheduler");

前端控制定時(shí)器暫停、恢復(fù)等核心方法

原理:配置定時(shí)器項(xiàng)目默認(rèn)調(diào)度器名字蓝谨,并結(jié)合quartz官方提供的表結(jié)構(gòu)以及自動(dòng)從數(shù)據(jù)庫(kù)加載定時(shí)器配置的機(jī)制灌具,使用調(diào)度器Scheduler的幾個(gè)核心方法結(jié)合數(shù)據(jù)庫(kù)配置達(dá)到使用前端界面控制定時(shí)器恢復(fù)青团、執(zhí)行等操作。

  • void start(); // 啟動(dòng)
  • void standby();// 掛起
  • void shutdown();// 關(guān)閉
  • void shutdown(true); // 等待所有正在執(zhí)行的job執(zhí)行完畢之后咖楣,再關(guān)閉scheduler督笆;

暫停定時(shí)器核心方法

修改數(shù)據(jù)庫(kù)的執(zhí)行器狀態(tài)

    @Override
    public Message updateJobStatus(QuartzJobInfo job) {
        QuartzTriggers triggers = new QuartzTriggers();
        triggers.setSchedName(job.getSchedName());
        triggers.setTriggerGroup(job.getTriggerGroup());
        triggers.setTriggerName(job.getTriggerName());
        triggers.setTriggerState(job.getTriggerState());
        quartzTriggersDao.updateByPrimaryKeySelective(triggers);
        if (QRTZ_TRIGGER_STATUS_WAITING.equals(job.getTriggerState())) {
            quartzManager.resumeJob(job.getJobName(), job.getJobGroup());
        } else {
            quartzManager.pauseJob(job.getJobName(), job.getJobGroup());
        }
        return Message.success();
    }
    /**
    * 調(diào)度器暫停Job
    *
    * @param jobName      job名字
    * @param jobGroupName job組名
    */
public void pauseJob(String jobName, String jobGroupName) {
    JobKey jobKey = JobKey.jobKey(jobName, jobGroupName);
    try {
        scheduler.pauseJob(jobKey);
    } catch (SchedulerException e) {
        throw new BusinessException("暫停任務(wù)[" + jobGroupName + SPLIT_DOT + jobName + "]中出現(xiàn)異常!", e);
    } catch (IllegalArgumentException e) {
        throw new BusinessException("暫停任務(wù)[" + jobGroupName + SPLIT_DOT + jobName + "]中出現(xiàn)異常!", e);
    }
}

恢復(fù)定時(shí)器核心方法

    /**
     * 調(diào)度器恢復(fù)Job
     *
     * @param jobName      job名字
     * @param jobGroupName job組名
     */
    public void resumeJob(String jobName, String jobGroupName) {
        JobKey jobKey = JobKey.jobKey(jobName, jobGroupName);
        try {
            scheduler.resumeJob(jobKey);
        } catch (SchedulerException e) {
            throw new BusinessException("恢復(fù)任務(wù)[" + jobGroupName + SPLIT_DOT + jobName + "]中出現(xiàn)異常!", e);
        }
    }

效果

quartz界面-2019713204052

回顧

定時(shí)器配置:SimpleTrigger和CronTrigger

spring-servlet.xml 中添加配置,用于托付給spring來(lái)管理截歉;

  • 配置JobDetail胖腾;
  • 配置Trigger;
  • 配置Scheduler瘪松;
    首先配置JobDetail咸作,前面的概念中也了解到定義的方式,方式如下:
  • MethodInvokingJobDetailFactoryBean
  • JobDetailFactoryBean:可以傳入?yún)?shù)jobDataMap宵睦;比較靈活记罚;
  • extends QuartzJobBean
<description>Quartz定時(shí)器配置</description>

<!-- JobDetail 定義方式一: MethodInvokingJobDetailFactoryBean-->
<bean id="lxJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    <!-- 指定類 -->
    <property name="targetObject" ref="lxJobDetailBean"/>
    <!-- 指定方法 -->
    <property name="targetMethod" value="init"/>
</bean>

<!-- JobDetail 定義方式二:JobDetailFactoryBean -->
<bean id="lxJobDetailBean1" class="org.springframework.scheduling.quartz.JobDetailFactoryBean">
    <property name="jobClass" value="com.weyoung.platform.quartz.schedule.LxQuartzJobBean"/>
    <!-- 傳入自定義參數(shù) -->
    <property name="jobDataMap">
        <map>
            <entry key="anotherBean" value-ref="anotherBean"/>
        </map>
    </property>
    <property name="durability" value="true"/>
</bean>

<!-- Trigger方式一:SimpleTriggerFactoryBean 距離當(dāng)前時(shí)間1秒之后執(zhí)行,之后每隔兩秒鐘執(zhí)行一次 -->
<bean id="lxSimpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean">
    <property name="jobDetail" ref="lxJobDetail"/>
    <property name="startDelay" value="1000"/>
    <property name="repeatInterval" value="2000"/>
</bean>

<!-- Trigger方式二:CronTriggerFactoryBean 每隔五秒鐘執(zhí)行一次 -->
<bean id="lxCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
    <property name="jobDetail" ref="lxJobDetailBean1"/>
    <property name="cronExpression" value="0/5 * * ? * *"/>
</bean>

<bean id="lxQuartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    <property name="jobDetails">
        <list>
            <ref bean="lxJobDetail"/>
            <ref bean="lxJobDetailBean1"/>
        </list>
    </property>
    <property name="triggers">
        <list>
            <ref bean="lxSimpleTrigger"/>
            <ref bean="lxCronTrigger"/>
        </list>
    </property>
</bean>

其中壳嚎,定義的類lxJobDetailBean桐智、lxJobDetailBean1、anotherBean代碼如下:
LxJobDetailBean.java

package com.weyoung.platform.quartz.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @功能描述:
 * @時(shí)間: 2019/6/29 11:26
 * @author: Mr.wang
 */
@Component("lxJobDetailBean")
public class LxJobDetailBean {

    private static final Logger LOGGER = LoggerFactory.getLogger(LxJobDetailBean.class);

    public void init() {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        LOGGER.info("-----------lxJobDetailBean.init-----------" + sdf.format(date));
    }
}

LxQuartzJobBean.java

package com.weyoung.platform.quartz.schedule;

import com.weyoung.platform.quartz.entity.AnotherBean;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @功能描述:
 * @時(shí)間: 2019/6/29 11:33
 * @author: Mr.wang
 */
public class LxQuartzJobBean extends QuartzJobBean {

    // 定義一個(gè)需要傳入的參數(shù)烟馅,并給一個(gè)setter方法

    private AnotherBean anotherBean;
    private static final Logger LOGGER = LoggerFactory.getLogger(LxQuartzJobBean.class);
    /**
     * 業(yè)務(wù)邏輯
     *
     * @param jobExecutionContext
     * @throws JobExecutionException
     */
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        LOGGER.info("---------LxQuartzJobBean.executeInternal---------" + sdf.format(date));
    }

    public void setAnotherBean(AnotherBean anotherBean) {
        this.anotherBean = anotherBean;
    }
}

AnotherBean.java

package com.weyoung.platform.quartz.entity;

import org.springframework.stereotype.Component;

/**
 * @功能描述:
 * @時(shí)間: 2019/6/29 11:36
 * @author: Mr.wang
 */
@Component("anotherBean")
public class AnotherBean {
    public void someMessage () {

    }
}

定時(shí)器兩種方式配置執(zhí)行結(jié)果-2019629135035

Quartz中作業(yè)存儲(chǔ)方式

  • RAMJobStore:作業(yè)说庭、觸發(fā)器、調(diào)度信息存儲(chǔ)在內(nèi)存中郑趁,這種方式存取速度比較快刊驴,但是如果定時(shí)器項(xiàng)目重啟或者崩潰的話,存儲(chǔ)的信息都會(huì)丟失寡润;
  • JDBC作業(yè)存儲(chǔ):作業(yè)捆憎、觸發(fā)器、調(diào)度信息存儲(chǔ)在數(shù)據(jù)庫(kù)中梭纹,支持事務(wù)躲惰,支持集群;

前面的筆記里面記錄了Quartz官方提供的表結(jié)構(gòu)及創(chuàng)建腳本等变抽,使用該腳本創(chuàng)建數(shù)據(jù)庫(kù)础拨;

修改調(diào)度器信息及使用quartz.propertie文件配置

我的項(xiàng)目暫時(shí)是把定時(shí)器放在項(xiàng)目主程序中,也是使用同一個(gè)數(shù)據(jù)庫(kù)绍载,當(dāng)然也可以分開(kāi)太伊。如果需要自己配置數(shù)據(jù)庫(kù)的話,在quartz.properties中配置就行逛钻。
因此,修改<code>spring-quartz.xml</code>配置如下:

<!-- 調(diào)度器锰提,調(diào)度器的id不要改曙痘,數(shù)據(jù)庫(kù)中記錄調(diào)度器名稱 -->
<bean id="lxQuartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
    <!-- 使用spring中配置的數(shù)據(jù)源芳悲,需要在這兒配置 -->
    <property name="dataSource" ref="masterDataSource"/>
    <property name="overwriteExistingJobs" value="true"/><!--覆蓋JOB:true、以數(shù)據(jù)庫(kù)中已經(jīng)存在的為準(zhǔn): -->
    <property name="autoStartup" value="true"/><!--自啟動(dòng)-->
    <property name="startupDelay" value="20"/> <!-- 定時(shí)任務(wù)延時(shí)啟動(dòng)边坤,程序啟動(dòng)后20秒再啟動(dòng)定時(shí)任務(wù) -->
    <!-- 調(diào)度器配置文件 -->
    <property name="configLocation" value="classpath:config/quartz.properties"/>
</bean>

quartz.properties文件的配置

#===========================================================================
# Configure Main Scheduler Properties 調(diào)度器屬性
# ===========================================================================
org.quartz.scheduler.instanceName=lxQuartzScheduler
org.quartz.scheduler.instanceid=AUTO
org.quartz.scheduler.rmi.export=false
org.quartz.scheduler.rmi.proxy=false
org.quartz.scheduler.wrapJobExecutionInUserTransaction=false
# ===========================================================================
# Configure ThreadPool 線程池屬性
# ===========================================================================
#線程池的實(shí)現(xiàn)類(一般使用SimpleThreadPool即可滿足幾乎所有用戶的需求)
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
#指定線程數(shù)名扛,至少為1(無(wú)默認(rèn)值)(一般設(shè)置為1-100直接的整數(shù)合適)
org.quartz.threadPool.threadCount=10
#設(shè)置線程的優(yōu)先級(jí)(最大為java.lang.Thread.MAX_PRIORITY 10,最小為T(mén)hread.MIN_PRIORITY 1茧痒,默認(rèn)為5)
org.quartz.threadPool.threadPriority=5
===========================================================================
# Configure JobStore 存儲(chǔ)調(diào)度信息(工作肮韧,觸發(fā)器和日歷等)
# ===========================================================================
# 信息保存時(shí)間 默認(rèn)值60秒
org.quartz.jobStore.misfireThreshold=60000
#保存job和Trigger的狀態(tài)信息到內(nèi)存中的類
#org.quartz.jobStore.class=org.quartz.simpl.RAMJobStore
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
# Mysql需要使用下面的鏈接
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
#org.quartz.jobStore.useProperties = false
## 我們采用程序中的數(shù)據(jù)源,因此這塊不配置旺订,在spring-quartz.xml中配置
#org.quartz.jobStore.dataSource = masterDataSource
org.quartz.jobStore.tablePrefix = QRTZ_
#org.quartz.jobStore.isClustered = false
#============================================================================
# Configure Datasources
#============================================================================
#org.quartz.dataSource.myDS.driver=com.mysql.jdbc.Driver
#org.quartz.dataSource.myDS.URL=jdbc:mysql://localhost:3306/SSM_NOTE
#org.quartz.dataSource.myDS.user=root
#org.quartz.dataSource.myDS.password=lucifer
#org.quartz.dataSource.myDS.maxConnections=5

# ===========================================================================
# Configure SchedulerPlugins 插件屬性 配置
# ===========================================================================
# 自定義插件
org.quartz.plugin.triggHistory.class=org.quartz.plugins.history.LoggingTriggerHistoryPlugin  
org.quartz.plugin.triggHistory.triggerFiredMessage=Trigger {1}.{0} fired job {6}.{5} at: {4, date, HH:mm:ss MM/dd/yyyy}  
org.quartz.plugin.triggHistory.triggerCompleteMessage=Trigger {1}.{0} completed firing job {6}.{5} at {4, date, HH:mm:ss MM/dd/yyyy} with resulting trigger instruction code: {9}  

qrtz_triggers表中的字段特別解析:

MISFIRE_INSTR:Misfire處理規(guī)則:

SimpleScheduleBuilder scheduleBuilder = SimpleScheduleBuilder.simpleSchedule();
// 1
scheduleBuilder.withMisfireHandlingInstructionFireNow();
// -1
scheduleBuilder.withMisfireHandlingInstructionIgnoreMisfires();
// 5
scheduleBuilder.withMisfireHandlingInstructionNextWithExistingCount();
// 4
scheduleBuilder.withMisfireHandlingInstructionNextWithRemainingCount();
// 2
scheduleBuilder.withMisfireHandlingInstructionNowWithExistingCount();
// 3
scheduleBuilder.withMisfireHandlingInstructionNowWithRemainingCount();

/*
1:withMisfireHandlingInstructionFireNow
——以當(dāng)前時(shí)間為觸發(fā)頻率立即觸發(fā)執(zhí)行
——執(zhí)行至FinalTIme的剩余周期次數(shù)
——以調(diào)度或恢復(fù)調(diào)度的時(shí)刻為基準(zhǔn)的周期頻率弄企,F(xiàn)inalTime根據(jù)剩余次數(shù)和當(dāng)前時(shí)間計(jì)算得到
——調(diào)整后的FinalTime會(huì)略大于根據(jù)starttime計(jì)算的到的FinalTime值
-1:withMisfireHandlingInstructionIgnoreMisfires
——以錯(cuò)過(guò)的第一個(gè)頻率時(shí)間立刻開(kāi)始執(zhí)行
——重做錯(cuò)過(guò)的所有頻率周期
——當(dāng)下一次觸發(fā)頻率發(fā)生時(shí)間大于當(dāng)前時(shí)間以后,按照Interval的依次執(zhí)行剩下的頻率
——共執(zhí)行RepeatCount+1次
2:withMisfireHandlingInstructionNowWithExistingCount
——以當(dāng)前時(shí)間為觸發(fā)頻率立即觸發(fā)執(zhí)行
——執(zhí)行至FinalTIme的剩余周期次數(shù)
——以調(diào)度或恢復(fù)調(diào)度的時(shí)刻為基準(zhǔn)的周期頻率区拳,F(xiàn)inalTime根據(jù)剩余次數(shù)和當(dāng)前時(shí)間計(jì)算得到
——調(diào)整后的FinalTime會(huì)略大于根據(jù)starttime計(jì)算的到的FinalTime值
3:withMisfireHandlingInstructionNowWithRemainingCount
——以當(dāng)前時(shí)間為觸發(fā)頻率立即觸發(fā)執(zhí)行
——執(zhí)行至FinalTIme的剩余周期次數(shù)
——以調(diào)度或恢復(fù)調(diào)度的時(shí)刻為基準(zhǔn)的周期頻率拘领,F(xiàn)inalTime根據(jù)剩余次數(shù)和當(dāng)前時(shí)間計(jì)算得到
——調(diào)整后的FinalTime會(huì)略大于根據(jù)starttime計(jì)算的到的FinalTime值
4:withMisfireHandlingInstructionNextWithRemainingCount
——不觸發(fā)立即執(zhí)行
——等待下次觸發(fā)頻率周期時(shí)刻,執(zhí)行至FinalTime的剩余周期次數(shù)
——以startTime為基準(zhǔn)計(jì)算周期頻率樱调,并得到FinalTime
——即使中間出現(xiàn)pause约素,resume以后保持FinalTime時(shí)間不變
5:withMisfireHandlingInstructionNextWithExistingCount
——不觸發(fā)立即執(zhí)行
——等待下次觸發(fā)頻率周期時(shí)刻,執(zhí)行至FinalTime的剩余周期次數(shù)
——以startTime為基準(zhǔn)計(jì)算周期頻率笆凌,并得到FinalTime
——即使中間出現(xiàn)pause圣猎,resume以后保持FinalTime時(shí)間不變
*/

// Cron的MisFire策略;使用最多的

CronScheduleBuilder cronScheduleBuilder = CronScheduleBuilder.cronSchedule("");
// -1: 以錯(cuò)過(guò)的第一個(gè)頻率時(shí)間立刻開(kāi)始執(zhí)行,重做錯(cuò)過(guò)的所有頻率周期后當(dāng)下一次觸發(fā)頻率發(fā)生時(shí)間大于當(dāng)前時(shí)間后乞而,再按照正常的Cron頻率依次執(zhí)行送悔;
cronScheduleBuilder.withMisfireHandlingInstructionIgnoreMisfires();
// 2: 不觸發(fā)立即執(zhí)行,等待下次Cron觸發(fā)頻率到達(dá)時(shí)刻開(kāi)始按照Cron頻率依次執(zhí)行晦闰;
cronScheduleBuilder.withMisfireHandlingInstructionDoNothing();
// 1:以當(dāng)前時(shí)間為觸發(fā)頻率立刻觸發(fā)一次執(zhí)行放祟,然后按照Cron頻率依次執(zhí)行
cronScheduleBuilder.withMisfireHandlingInstructionFireAndProceed();

錯(cuò)誤

org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzJobServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzManager': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lxQuartzScheduler' defined in class path resource [spring/spring-quartz.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/UserTransaction

是因?yàn)槿鄙賘ar包,添加如下依賴,即可

<dependency>
    <groupId>javax.transaction</groupId>
    <artifactId>jta</artifactId>
    <version>1.1</version>
</dependency>
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末呻右,一起剝皮案震驚了整個(gè)濱河市跪妥,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌声滥,老刑警劉巖眉撵,帶你破解...
    沈念sama閱讀 216,544評(píng)論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異落塑,居然都是意外死亡纽疟,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,430評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門(mén)憾赁,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)污朽,“玉大人,你說(shuō)我怎么就攤上這事龙考◇∷粒” “怎么了矾睦?”我有些...
    開(kāi)封第一講書(shū)人閱讀 162,764評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)炎功。 經(jīng)常有香客問(wèn)我枚冗,道長(zhǎng),這世上最難降的妖魔是什么蛇损? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,193評(píng)論 1 292
  • 正文 為了忘掉前任赁温,我火速辦了婚禮,結(jié)果婚禮上淤齐,老公的妹妹穿的比我還像新娘股囊。我一直安慰自己,他們只是感情好床玻,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,216評(píng)論 6 388
  • 文/花漫 我一把揭開(kāi)白布毁涉。 她就那樣靜靜地躺著,像睡著了一般锈死。 火紅的嫁衣襯著肌膚如雪贫堰。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 51,182評(píng)論 1 299
  • 那天待牵,我揣著相機(jī)與錄音其屏,去河邊找鬼。 笑死缨该,一個(gè)胖子當(dāng)著我的面吹牛偎行,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播贰拿,決...
    沈念sama閱讀 40,063評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼蛤袒,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來(lái)了膨更?” 一聲冷哼從身側(cè)響起妙真,我...
    開(kāi)封第一講書(shū)人閱讀 38,917評(píng)論 0 274
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎荚守,沒(méi)想到半個(gè)月后珍德,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,329評(píng)論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡矗漾,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,543評(píng)論 2 332
  • 正文 我和宋清朗相戀三年锈候,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片敞贡。...
    茶點(diǎn)故事閱讀 39,722評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡泵琳,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情虑稼,我是刑警寧澤琳钉,帶...
    沈念sama閱讀 35,425評(píng)論 5 343
  • 正文 年R本政府宣布,位于F島的核電站蛛倦,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏啦桌。R本人自食惡果不足惜溯壶,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,019評(píng)論 3 326
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望甫男。 院中可真熱鬧且改,春花似錦、人聲如沸板驳。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 31,671評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)若治。三九已至慨蓝,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間端幼,已是汗流浹背礼烈。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 32,825評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留婆跑,地道東北人此熬。 一個(gè)月前我還...
    沈念sama閱讀 47,729評(píng)論 2 368
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像滑进,于是被迫代替她去往敵國(guó)和親犀忱。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,614評(píng)論 2 353

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