Test project

Test Item Address

Code cloud address gitee.com/huhuanan/mo…

Background test address: test.ostudio. Cc /admin admin 123456 (Please do not change the password, if you cannot log in, please contact me, the contact information is at the bottom)

How do I create projects using the M Rapid Development Framework

  1. Clone creates dependencies required by the project
  2. Install dependent projects to local Maven
  3. Create a new project and add dependencies and configuration files

Create project details

1. Clone creates dependencies required by the project

Download the following three items first

  • Gitee.com/huhuanan/m….
  • Gitee.com/huhuanan/m….
  • Gitee.com/huhuanan/m….

I use Eclipse, so I created the wookspaces_gitee workspace and downloaded all three projects into that directory, as shownThe other two use the same operation to get the following directory

2. Install the dependent project to the local Maven

Import the project into Eclipse and install Maven The SRC /test/ Java directory and the SRC /test/resources directory do not exist. The SRC /test/ Java directory and the SRC /test/resources directory do not exist.

3. Create a project and add dependencies and configuration files

Right click on the space After the above steps, the test project is obtainedModify the POM.xml file to add dependencies.

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>mo</groupId>
  <artifactId>test</artifactId>
  <version>0.0.1 - the SNAPSHOT</version>
  <packaging>war</packaging>
  <name>mo.test</name>
  <properties>
    <webVersion>4.0</webVersion>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <dependencies>
    <dependency>
      <groupId>javax</groupId>
      <artifactId>javaee-api</artifactId>
      <version>8.0</version>
      <scope>provided</scope>
    </dependency>
	<dependency>
      <groupId>m</groupId>
      <artifactId>manage</artifactId>
      <version>0.0.1</version>
    </dependency>
    <dependency>
      <groupId>m</groupId>
      <artifactId>manage</artifactId>
      <version>0.0.1</version>
      <type>war</type>
    </dependency>
  </dependencies>
  <build>
  	<defaultGoal>compile</defaultGoal>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <failOnMissingWebXml>false</failOnMissingWebXml>
          <packagingExcludes>/uploadData/</packagingExcludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
Copy the code

willm.manage.warThe projectThe config folderanddbconfig.propertiesCopy to the corresponding directory of the new project.Modify thedbconfig.propertiesThe configuration fileThe database name in the create database (name the database according to your needs) configuration file also needs to be changed.

CREATE SCHEMA mdb CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
Copy the code

Everything is ready

Deploy and run.

I’m not going to talk about that, but you can probably do it.

Development of guidelines

M: Demo example – Model classes and operations

– Action class list page and edit page

Updates continue at…..

Code cloud address gitee.com/huhuanan/mo… Welcome to pay attention to, like please click star

Click the link to join the group chat [M Rapid Development Framework] group number :764581300

Thank you for your support