IntelliJ IDEA創(chuàng)建Spring SpringMVC MyBatis整合Maven項(xiàng)目响蕴,并提交至Github

??本文小博將寫一篇IDEA創(chuàng)建SSM+Maven整合項(xiàng)目,并提交至Github的教程惠桃。較為基礎(chǔ)浦夷,大神勿噴辖试。原創(chuàng)博客,轉(zhuǎn)載請注明來源劈狐。

步驟如下:

①新建Maven項(xiàng)目罐孝,如下圖順序。第三張圖片中肥缔,添加一個(gè)參數(shù)archetypeCatalog=internal莲兢,表示僅使用內(nèi)部元數(shù)據(jù),不用這個(gè)參數(shù)創(chuàng)建Maven項(xiàng)目會很慢哦续膳。其他起名字什么的大家大家隨意改艇,就不一一解釋了。

②將Java文件夾標(biāo)記為源碼目錄姑宽,然后創(chuàng)建各種MVC模式對應(yīng)的包

③如下圖遣耍,創(chuàng)建配置文件闺阱,然后進(jìn)行各種配置文件的編寫炮车。后面貼出我的代碼,篇幅太大就不逐一解釋了,以后有時(shí)間再詳細(xì)拉出來寫寫。

  • pom.xml文件
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>xin.chung</groupId>
    <artifactId>undergraduate</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>undergraduate</name>
    <url>http://maven.apache.org</url>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <!-- JDK版本號 -->
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <!-- spring版本號 -->
        <spring.version>4.2.5.RELEASE</spring.version>
        <!-- mybatis版本號 -->
        <mybatis.version>3.2.8</mybatis.version>
        <!-- mysql驅(qū)動版本號 -->
        <mysql-driver.version>5.1.29</mysql-driver.version>
        <!-- log4j日志包版本號 -->
        <slf4j.version>1.7.18</slf4j.version>
        <log4j.version>1.2.17</log4j.version>
    </properties>
    <dependencies>
        <!-- 添加jstl依賴 -->
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
            <version>7.0</version>
        </dependency>
        <!-- 添加junit4依賴 -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <!-- 指定范圍啊犬,在測試時(shí)才會加載 -->
            <scope>test</scope>
        </dependency>
        <!-- 添加spring核心依賴 -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-oxm</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
            <version>${spring.version}</version>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <version>${spring.version}</version>
        </dependency>
        <!-- 添加mybatis依賴 -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis</artifactId>
            <version>${mybatis.version}</version>
        </dependency>
        <!-- 添加mybatis/spring整合包依賴 -->
        <dependency>
            <groupId>org.mybatis</groupId>
            <artifactId>mybatis-spring</artifactId>
            <version>1.2.2</version>
        </dependency>
        <!-- 添加mysql驅(qū)動依賴 -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql-driver.version}</version>
        </dependency>
        <!-- 添加數(shù)據(jù)庫連接池依賴 -->
        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
            <version>1.2.2</version>
        </dependency>
        <!-- 添加fastjson -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>1.1.41</version>
        </dependency>
        <!-- 添加日志相關(guān)jar包 -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>${log4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <!-- log end -->
        <!-- 映入JSON -->
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-mapper-asl</artifactId>
            <version>1.9.13</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.8.0</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.8.0</version>
        </dependency>
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.3.1</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.4</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.9</version>
        </dependency>
    </dependencies>
    <build>
        <finalName>undergraduate</finalName>
    </build>
</project>
  • web.xml文件
<!DOCTYPE web-app PUBLIC
        "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
              http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">
    <display-name>undergraduate</display-name>
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:spring-mybatis.xml</param-value>
    </context-param>

    <context-param>
        <param-name>log4jConfigLocation</param-name>
        <param-value>classpath:log4j.properties</param-value>
    </context-param>

    <!-- 編碼過濾器 -->
    <filter>
        <filter-name>encodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
            <param-name>forceEncoding</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>encodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <!-- spring監(jiān)聽器 -->
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <!-- 防止spring內(nèi)存溢出監(jiān)聽器郎仆,比如quartz -->
    <listener>
        <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
    </listener>

    <!-- spring mvc servlet-->
    <servlet>
        <servlet-name>SpringMVC</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:spring-mvc.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
        <async-supported>true</async-supported>
    </servlet>
    <servlet-mapping>
        <servlet-name>SpringMVC</servlet-name>
        <!-- 此處也可以配置成 *.do 形式 -->
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>

    <!-- session配置 -->
    <session-config>
        <session-timeout>20</session-timeout>
    </session-config>
</web-app>
  • jdbc.properties文件
driverClass=com.mysql.jdbc.Driver
#以下三行根據(jù)自己的數(shù)據(jù)庫來設(shè)置哦
jdbcUrl=jdbc:mysql://localhost:3306/graduate?useUnicode=true&characterEncoding=utf-8
username=root
password=root
#定義初始連接數(shù)
initialSize=0
#定義最大連接數(shù)
maxActive=20
#定義最大空閑
maxIdle=20
#定義最小空閑
minIdle=1
#定義最長等待時(shí)間
maxWait=3600
  • log4j.properties文件,這個(gè)根據(jù)自己個(gè)人情況來哦
log4j.rootLogger=INFO,Console,File
#控制臺日志
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.Target=System.out
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=[%p][%t][%d{yyyy-MM-dd HH\:mm\:ss}][%C] - %m%n
#普通文件日志
log4j.appender.File=org.apache.log4j.RollingFileAppender
log4j.appender.File.File=logs/ssm.log
log4j.appender.File.MaxFileSize=10MB
#輸出日志瘫析,如果換成DEBUG表示輸出DEBUG以上級別日志
log4j.appender.File.Threshold=ALL
log4j.appender.File.layout=org.apache.log4j.PatternLayout
log4j.appender.File.layout.ConversionPattern=[%p][%t][%d{yyyy-MM-dd HH\:mm\:ss}][%C] - %m%n
#設(shè)置輸出日志文件編碼
log4j.appender.File.Encoding=UTF-8
  • spring-mvc.xml文件,注意自己建立的包和我教程里包的不同
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                            http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
                            http://www.springframework.org/schema/context
                            http://www.springframework.org/schema/context/spring-context-4.0.xsd">

    <!-- 自動掃描  @Controller-->
    <context:component-scan base-package="xin.chung.undergraduate.controller"/>

    <!--避免IE執(zhí)行AJAX時(shí),返回JSON出現(xiàn)下載文件 -->
    <bean id="mappingJacksonHttpMessageConverter"
          class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
        <property name="supportedMediaTypes">
            <list>
                <value>application/json;charset=UTF-8</value>
            </list>
        </property>
    </bean>
    <!-- 啟動SpringMVC的注解功能熙兔,完成請求和注解POJO的映射 -->
    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
        <property name="messageConverters">
            <list>
                <!-- JSON轉(zhuǎn)換器 -->
                <ref bean="mappingJacksonHttpMessageConverter"/>
            </list>
        </property>
    </bean>

    <!--定義跳轉(zhuǎn)的文件的前后綴 ,視圖模式配置-->
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/view/"/>
        <property name="suffix" value=".jsp"/>
    </bean>
</beans>
  • spring-mybatis.xml文件艾恼,同樣注意自己建立的包和我教程里包的不同
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" 
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/bean
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd">

    <!-- 自動掃描 -->
    <context:component-scan base-package="xin.chung.undergraduate"/>

    <!-- 第一種方式:加載一個(gè)properties文件 -->
    <bean id="propertyConfigurer"
 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="classpath:jdbc.properties"/>
    </bean>
    <!-- 第二種方式:加載多個(gè)properties文件
    <bean id="configProperties"     
    class="org.springframework.beans.factory.config.PropertiesFactoryBean">
        <property name="locations">
            <list>
                <value>classpath:jdbc.properties</value>
                <value>classpath:common.properties</value>
            </list>
        </property>
        <property name="fileEncoding" value="UTF-8"/>
    </bean>
    <bean id="propertyConfigurer" 
    class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
        <property name="properties" ref="configProperties"/>
    </bean>
    -->

    <!-- 配置數(shù)據(jù)源 -->
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
          destroy-method="close">
        <property name="driverClassName" value="${driverClass}"/>
        <property name="url" value="${jdbcUrl}"/>
        <property name="username" value="${username}"/>
        <property name="password" value="${password}"/>
        <!-- 初始化連接大小 -->
        <property name="initialSize" value="${initialSize}"></property>
        <!-- 連接池最大數(shù)量 -->
        <property name="maxActive" value="${maxActive}"></property>
        <!-- 連接池最大空閑 -->
        <property name="maxIdle" value="${maxIdle}"></property>
        <!-- 連接池最小空閑 -->
        <property name="minIdle" value="${minIdle}"></property>
        <!-- 獲取連接最大等待時(shí)間 -->
        <property name="maxWait" value="${maxWait}"></property>
    </bean>

    <!-- mybatis和spring完美整合住涉,不需要mybatis的配置映射文件 -->
    <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <!-- 自動掃描mapping.xml文件 -->
        <property name="mapperLocations" value="classpath:mapper/*.xml"></property>
    </bean>

    <!-- DAO接口所在包名,Spring會自動查找其下的類 -->
    <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
        <property name="basePackage" value="xin.chung.undergraduate.dao"/>
        <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"></property>
    </bean>

    <!-- (事務(wù)管理)transactionManager, use JtaTransactionManager for global tx -->
    <bean id="transactionManager" 
 class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="dataSource"/>
    </bean>

    <!-- (事務(wù)管理)transaction manager, use JtaTransactionManager for global tx -->
    <tx:annotation-driven transaction-manager="transactionManager"/>
</beans>

④發(fā)布到Tomcat钠绍,開啟服務(wù)器并運(yùn)行調(diào)試舆声,步驟如下圖,其中各種命名具體情況具體對待柳爽。

⑤編寫下列文件媳握,并開啟Tomcat測試運(yùn)行項(xiàng)目。

  • resources\mapper\TestMapper.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="xin.chung.undergraduate.dao.ITestDao">
    <resultMap id="TestCMap" type="xin.chung.undergraduate.model.po.TestC">
        <id column="id" property="id" jdbcType="BIGINT"/>
        <result column="username" property="username" jdbcType="VARCHAR"/>
        <result column="password" property="password" jdbcType="VARCHAR"/>
        <result column="phone" property="phone" jdbcType="VARCHAR"/>
        <result column="email" property="email" jdbcType="VARCHAR"/>
        <result column="create_time" property="createTime" jdbcType="DATE"/>
    </resultMap>
    <!-- <insert id="CreateUser" parameterType="java.util.Map">
         INSERT INTO t_testc
     </insert>-->
    <select id="ReadUserByID" parameterType="java.lang.Long" resultMap="TestCMap">
        SELECT * FROM t_testc
        WHERE id = #{userID}
    </select>
</mapper>
  • java\xin\chung\undergraduate\dao\ITestDao.java
/**
 * Created by Charle Chung on 2017/10/13.
 */
@Repository
public interface ITestDao {
    boolean CreateUser(TestC testC);

    boolean UpdateUser(TestC testC);

    TestC ReadUserByID(@Param("userID") Long userID);

    boolean DeleteUserByID(@Param("userID") Long userID);
}
  • java\xin\chung\undergraduate\service\ITestService.java
/**
 * Created by Charle Chung on 2017/10/13.
 */
public interface ITestService {
    boolean CreateUser();

    boolean UpdateUser();

    TestC ReadUserByID(Long userID);

    boolean DeleteUserByID(Long userID);
}
  • java\xin\chung\undergraduate\service\impl\TestService.java
/**
 * Created by Charle Chung on 2017/10/13.
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TestService implements ITestService {
    @Resource
    private ITestDao iTestDao;
    @Override
    public boolean CreateUser() {
        return false;
    }
    @Override
    public boolean UpdateUser() {
        return false;
    }
    @Override
    public TestC ReadUserByID(Long userID) {
        return iTestDao.ReadUserByID(userID);
    }
    @Override
    public boolean DeleteUserByID(Long userID) {
        return false;
    }
}
  • java\xin\chung\undergraduate\controller\TestController.java
/**
 * Created by Charle Chung on 2017/10/13.
 */
@Controller
@RequestMapping(value = "/test")
public class TestController {
    @Resource
    private ITestService iTestService;
    @ResponseBody
    @RequestMapping(value = "/test.action", method = RequestMethod.GET)
    public TestC testC(TestDTO testDTO) {
        TestC testC = iTestService.ReadUserByID(testDTO.getUid());
        return testC;
    }
    
//    Map<String, Object> data = new HashMap<String, Object>();
//
//    public void setData(String key, Object value) {
//        data.clear();
//        data.put(key, value);
//    }

//    @RequestMapping(value = "/test.action", method = RequestMethod.POST)
//    public ModelAndView testC(TestDTO testDTO) {
//        System.out.println("test");
//        TestC testC = iTestService.ReadUserByID(testDTO.getUid());
//        if (testC != null) {
//            setData("json", JSONArray.toJSON(testC));
//        } else {
//            setData("json", "null");
//        }
//        return new ModelAndView("result", data);
//    }
}
  • graduate數(shù)據(jù)庫表t_testc結(jié)構(gòu)及數(shù)據(jù)如下圖

⑥處理好以上內(nèi)容后磷脯,開啟Tomcat蛾找,瀏覽器訪問http://localhost:8080/graduate/test/test.action?uid=1,如若項(xiàng)目配置正確赵誓,應(yīng)出現(xiàn)如下JSON腋粥。

⑦分享項(xiàng)目到Github


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末晦雨,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子隘冲,更是在濱河造成了極大的恐慌闹瞧,老刑警劉巖,帶你破解...
    沈念sama閱讀 212,029評論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件展辞,死亡現(xiàn)場離奇詭異奥邮,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)罗珍,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,395評論 3 385
  • 文/潘曉璐 我一進(jìn)店門洽腺,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人覆旱,你說我怎么就攤上這事蘸朋。” “怎么了扣唱?”我有些...
    開封第一講書人閱讀 157,570評論 0 348
  • 文/不壞的土叔 我叫張陵藕坯,是天一觀的道長。 經(jīng)常有香客問我噪沙,道長炼彪,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,535評論 1 284
  • 正文 為了忘掉前任正歼,我火速辦了婚禮辐马,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘局义。我一直安慰自己喜爷,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,650評論 6 386
  • 文/花漫 我一把揭開白布萄唇。 她就那樣靜靜地躺著檩帐,像睡著了一般。 火紅的嫁衣襯著肌膚如雪穷绵。 梳的紋絲不亂的頭發(fā)上轿塔,一...
    開封第一講書人閱讀 49,850評論 1 290
  • 那天,我揣著相機(jī)與錄音仲墨,去河邊找鬼勾缭。 笑死,一個(gè)胖子當(dāng)著我的面吹牛目养,可吹牛的內(nèi)容都是我干的俩由。 我是一名探鬼主播,決...
    沈念sama閱讀 39,006評論 3 408
  • 文/蒼蘭香墨 我猛地睜開眼癌蚁,長吁一口氣:“原來是場噩夢啊……” “哼幻梯!你這毒婦竟也來了兜畸?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 37,747評論 0 268
  • 序言:老撾萬榮一對情侶失蹤碘梢,失蹤者是張志新(化名)和其女友劉穎咬摇,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體煞躬,經(jīng)...
    沈念sama閱讀 44,207評論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡肛鹏,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,536評論 2 327
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了恩沛。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片在扰。...
    茶點(diǎn)故事閱讀 38,683評論 1 341
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖雷客,靈堂內(nèi)的尸體忽然破棺而出芒珠,到底是詐尸還是另有隱情,我是刑警寧澤搅裙,帶...
    沈念sama閱讀 34,342評論 4 330
  • 正文 年R本政府宣布皱卓,位于F島的核電站,受9級特大地震影響呈宇,放射性物質(zhì)發(fā)生泄漏好爬。R本人自食惡果不足惜局雄,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,964評論 3 315
  • 文/蒙蒙 一甥啄、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧炬搭,春花似錦蜈漓、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,772評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至灼芭,卻和暖如春有额,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背彼绷。 一陣腳步聲響...
    開封第一講書人閱讀 32,004評論 1 266
  • 我被黑心中介騙來泰國打工巍佑, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人寄悯。 一個(gè)月前我還...
    沈念sama閱讀 46,401評論 2 360
  • 正文 我出身青樓萤衰,卻偏偏與公主長得像,于是被迫代替她去往敵國和親猜旬。 傳聞我的和親對象是個(gè)殘疾皇子脆栋,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,566評論 2 349