创建新平台项目流程

  1. 使用模块的模块管理创建项目,安装全部模块并下载

  2. 解压后,使用idea打开项目,更改JDK以及Maven配置

  3. 修改application-dev.properties中的数据库等配置

  4. 此时,应该可以正常启动项目

业务模块配置

  1. 最外层pom增加mybatis依赖

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
               <dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-spring</artifactId>
    <version>2.0.6</version>
    </dependency>
    <dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis</artifactId>
    <version>3.5.7</version>
    </dependency>
  2. 使用mybatis-generator-maven-plugin1.3.7可以生成分页的mapper