数据库调整;microservice-api改为microservice-pojo;创建gateway Module
This commit is contained in:
		
							
								
								
									
										6
									
								
								backend/.idea/encodings.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								backend/.idea/encodings.xml
									
									
									
										generated
									
									
									
								
							@@ -1,8 +1,10 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
<project version="4">
 | 
					<project version="4">
 | 
				
			||||||
  <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
 | 
					  <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
 | 
				
			||||||
    <file url="file://$PROJECT_DIR$/microservice-api/src/main/java" charset="UTF-8" />
 | 
					    <file url="file://$PROJECT_DIR$/microservice-gateway/src/main/java" charset="UTF-8" />
 | 
				
			||||||
    <file url="file://$PROJECT_DIR$/microservice-api/src/main/resources" charset="UTF-8" />
 | 
					    <file url="file://$PROJECT_DIR$/microservice-gateway/src/main/resources" charset="UTF-8" />
 | 
				
			||||||
 | 
					    <file url="file://$PROJECT_DIR$/microservice-pojo/src/main/java" charset="UTF-8" />
 | 
				
			||||||
 | 
					    <file url="file://$PROJECT_DIR$/microservice-pojo/src/main/resources" charset="UTF-8" />
 | 
				
			||||||
    <file url="file://$PROJECT_DIR$/microservice-provider-miniprogram-8080/src/main/java" charset="UTF-8" />
 | 
					    <file url="file://$PROJECT_DIR$/microservice-provider-miniprogram-8080/src/main/java" charset="UTF-8" />
 | 
				
			||||||
    <file url="file://$PROJECT_DIR$/microservice-provider-miniprogram-8080/src/main/resources" charset="UTF-8" />
 | 
					    <file url="file://$PROJECT_DIR$/microservice-provider-miniprogram-8080/src/main/resources" charset="UTF-8" />
 | 
				
			||||||
    <file url="file://$PROJECT_DIR$/microservice-provider-user-8001/src/main/java" charset="UTF-8" />
 | 
					    <file url="file://$PROJECT_DIR$/microservice-provider-user-8001/src/main/java" charset="UTF-8" />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,79 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<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/xsd/maven-4.0.0.xsd">
 | 
					 | 
				
			||||||
    <parent>
 | 
					 | 
				
			||||||
        <artifactId>epp</artifactId>
 | 
					 | 
				
			||||||
        <groupId>com.cxyxiaomo</groupId>
 | 
					 | 
				
			||||||
        <version>0.0.1-SNAPSHOT</version>
 | 
					 | 
				
			||||||
    </parent>
 | 
					 | 
				
			||||||
    <modelVersion>4.0.0</modelVersion>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <artifactId>microservice-api</artifactId>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <properties>
 | 
					 | 
				
			||||||
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
					 | 
				
			||||||
        <maven.compiler.source>11</maven.compiler.source>
 | 
					 | 
				
			||||||
        <maven.compiler.target>11</maven.compiler.target>
 | 
					 | 
				
			||||||
    </properties>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <dependencies>
 | 
					 | 
				
			||||||
        <dependency>
 | 
					 | 
				
			||||||
            <groupId>org.projectlombok</groupId>
 | 
					 | 
				
			||||||
            <artifactId>lombok</artifactId>
 | 
					 | 
				
			||||||
            <optional>true</optional>
 | 
					 | 
				
			||||||
        </dependency>
 | 
					 | 
				
			||||||
        <dependency>
 | 
					 | 
				
			||||||
            <groupId>junit</groupId>
 | 
					 | 
				
			||||||
            <artifactId>junit</artifactId>
 | 
					 | 
				
			||||||
            <version>4.11</version>
 | 
					 | 
				
			||||||
            <scope>test</scope>
 | 
					 | 
				
			||||||
        </dependency>
 | 
					 | 
				
			||||||
    </dependencies>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    <build>
 | 
					 | 
				
			||||||
        <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
 | 
					 | 
				
			||||||
            <plugins>
 | 
					 | 
				
			||||||
                <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-clean-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>3.1.0</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-resources-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>3.0.2</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-compiler-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>3.8.0</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-surefire-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>2.22.1</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-jar-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>3.0.2</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-install-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>2.5.2</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-deploy-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>2.8.2</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-site-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>3.7.1</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
                <plugin>
 | 
					 | 
				
			||||||
                    <artifactId>maven-project-info-reports-plugin</artifactId>
 | 
					 | 
				
			||||||
                    <version>3.0.0</version>
 | 
					 | 
				
			||||||
                </plugin>
 | 
					 | 
				
			||||||
            </plugins>
 | 
					 | 
				
			||||||
        </pluginManagement>
 | 
					 | 
				
			||||||
    </build>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
							
								
								
									
										29
									
								
								backend/microservice-gateway/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								backend/microservice-gateway/pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<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/xsd/maven-4.0.0.xsd">
 | 
				
			||||||
 | 
					    <parent>
 | 
				
			||||||
 | 
					        <artifactId>epp</artifactId>
 | 
				
			||||||
 | 
					        <groupId>com.cxyxiaomo</groupId>
 | 
				
			||||||
 | 
					        <version>0.0.1-SNAPSHOT</version>
 | 
				
			||||||
 | 
					    </parent>
 | 
				
			||||||
 | 
					    <modelVersion>4.0.0</modelVersion>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <artifactId>microservice-gateway</artifactId>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <properties>
 | 
				
			||||||
 | 
					        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
				
			||||||
 | 
					        <maven.compiler.source>1.7</maven.compiler.source>
 | 
				
			||||||
 | 
					        <maven.compiler.target>1.7</maven.compiler.target>
 | 
				
			||||||
 | 
					    </properties>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <dependencies>
 | 
				
			||||||
 | 
					        <dependency>
 | 
				
			||||||
 | 
					            <groupId>junit</groupId>
 | 
				
			||||||
 | 
					            <artifactId>junit</artifactId>
 | 
				
			||||||
 | 
					            <version>4.11</version>
 | 
				
			||||||
 | 
					            <scope>test</scope>
 | 
				
			||||||
 | 
					        </dependency>
 | 
				
			||||||
 | 
					    </dependencies>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					package com.cxyxiaomo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Hello world!
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					public class App 
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public static void main( String[] args )
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        System.out.println( "Hello World!" );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					package com.cxyxiaomo;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import static org.junit.Assert.assertTrue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import org.junit.Test;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Unit test for simple App.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					public class AppTest 
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Rigorous Test :-)
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    @Test
 | 
				
			||||||
 | 
					    public void shouldAnswerWithTrue()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        assertTrue( true );
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										33
									
								
								backend/microservice-pojo/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								backend/microservice-pojo/pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<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/xsd/maven-4.0.0.xsd">
 | 
				
			||||||
 | 
					    <parent>
 | 
				
			||||||
 | 
					        <artifactId>epp</artifactId>
 | 
				
			||||||
 | 
					        <groupId>com.cxyxiaomo</groupId>
 | 
				
			||||||
 | 
					        <version>0.0.1-SNAPSHOT</version>
 | 
				
			||||||
 | 
					    </parent>
 | 
				
			||||||
 | 
					    <modelVersion>4.0.0</modelVersion>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <artifactId>microservice-pojo</artifactId>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <properties>
 | 
				
			||||||
 | 
					        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
				
			||||||
 | 
					        <maven.compiler.source>11</maven.compiler.source>
 | 
				
			||||||
 | 
					        <maven.compiler.target>11</maven.compiler.target>
 | 
				
			||||||
 | 
					    </properties>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <dependencies>
 | 
				
			||||||
 | 
					        <dependency>
 | 
				
			||||||
 | 
					            <groupId>org.projectlombok</groupId>
 | 
				
			||||||
 | 
					            <artifactId>lombok</artifactId>
 | 
				
			||||||
 | 
					            <optional>true</optional>
 | 
				
			||||||
 | 
					        </dependency>
 | 
				
			||||||
 | 
					        <dependency>
 | 
				
			||||||
 | 
					            <groupId>junit</groupId>
 | 
				
			||||||
 | 
					            <artifactId>junit</artifactId>
 | 
				
			||||||
 | 
					            <version>4.11</version>
 | 
				
			||||||
 | 
					            <scope>test</scope>
 | 
				
			||||||
 | 
					        </dependency>
 | 
				
			||||||
 | 
					    </dependencies>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
@@ -5,7 +5,7 @@ server:
 | 
				
			|||||||
spring:
 | 
					spring:
 | 
				
			||||||
  datasource:
 | 
					  datasource:
 | 
				
			||||||
    driver-class-name: com.mysql.cj.jdbc.Driver
 | 
					    driver-class-name: com.mysql.cj.jdbc.Driver
 | 
				
			||||||
    url: jdbc:mysql://127.0.0.1:3306/school?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&serverTimezone=UTC
 | 
					    url: jdbc:mysql://127.0.0.1:3306/epp?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&serverTimezone=UTC
 | 
				
			||||||
    username: root
 | 
					    username: root
 | 
				
			||||||
    password: root
 | 
					    password: root
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,7 +21,7 @@
 | 
				
			|||||||
        <!-- 实体类 -->
 | 
					        <!-- 实体类 -->
 | 
				
			||||||
        <dependency>
 | 
					        <dependency>
 | 
				
			||||||
            <groupId>com.cxyxiaomo</groupId>
 | 
					            <groupId>com.cxyxiaomo</groupId>
 | 
				
			||||||
            <artifactId>microservice-api</artifactId>
 | 
					            <artifactId>microservice-pojo</artifactId>
 | 
				
			||||||
            <version>0.0.1-SNAPSHOT</version>
 | 
					            <version>0.0.1-SNAPSHOT</version>
 | 
				
			||||||
        </dependency>
 | 
					        </dependency>
 | 
				
			||||||
        <!-- mybatis -->
 | 
					        <!-- mybatis -->
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,8 @@
 | 
				
			|||||||
    <!-- 打包方式 -->
 | 
					    <!-- 打包方式 -->
 | 
				
			||||||
    <packaging>pom</packaging>
 | 
					    <packaging>pom</packaging>
 | 
				
			||||||
    <modules>
 | 
					    <modules>
 | 
				
			||||||
        <module>microservice-api</module>
 | 
					        <module>microservice-gateway</module>
 | 
				
			||||||
 | 
					        <module>microservice-pojo</module>
 | 
				
			||||||
        <module>microservice-provider-user-8001</module>
 | 
					        <module>microservice-provider-user-8001</module>
 | 
				
			||||||
        <module>microservice-provider-miniprogram-8080</module>
 | 
					        <module>microservice-provider-miniprogram-8080</module>
 | 
				
			||||||
    </modules>
 | 
					    </modules>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										228
									
								
								database/epp.sql
									
									
									
									
									
								
							
							
						
						
									
										228
									
								
								database/epp.sql
									
									
									
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user