SpringCloud项目初步配置
This commit is contained in:
		@@ -31,3 +31,7 @@ Spring Cloud Alibaba GitHub repo:https://github.com/alibaba/spring-cloud-aliba
 | 
				
			|||||||
Spring initializr:https://start.spring.io/
 | 
					Spring initializr:https://start.spring.io/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
https://start.spring.io/#!type=maven-project&language=java&platformVersion=2.7.5&packaging=jar&jvmVersion=11&groupId=com.cxyxiaomo&artifactId=entrance&name=Epidemic%20prevention%20platform&description=&packageName=com.cxyxiaomo.entrance&dependencies=lombok,mysql,mybatis
 | 
					https://start.spring.io/#!type=maven-project&language=java&platformVersion=2.7.5&packaging=jar&jvmVersion=11&groupId=com.cxyxiaomo&artifactId=entrance&name=Epidemic%20prevention%20platform&description=&packageName=com.cxyxiaomo.entrance&dependencies=lombok,mysql,mybatis
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### Maven
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MVN REPOSITORY:https://mvnrepository.com/
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								backend/.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								backend/.idea/.gitignore
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					# 默认忽略的文件
 | 
				
			||||||
 | 
					/shelf/
 | 
				
			||||||
 | 
					/workspace.xml
 | 
				
			||||||
 | 
					# 基于编辑器的 HTTP 客户端请求
 | 
				
			||||||
 | 
					/httpRequests/
 | 
				
			||||||
 | 
					# Datasource local storage ignored files
 | 
				
			||||||
 | 
					/dataSources/
 | 
				
			||||||
 | 
					/dataSources.local.xml
 | 
				
			||||||
							
								
								
									
										7
									
								
								backend/.idea/encodings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								backend/.idea/encodings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
 | 
				
			||||||
 | 
					    <file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
 | 
				
			||||||
 | 
					    <file url="PROJECT" charset="UTF-8" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										12
									
								
								backend/.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								backend/.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="ExternalStorageConfigurationManager" enabled="true" />
 | 
				
			||||||
 | 
					  <component name="MavenProjectsManager">
 | 
				
			||||||
 | 
					    <option name="originalFiles">
 | 
				
			||||||
 | 
					      <list>
 | 
				
			||||||
 | 
					        <option value="$PROJECT_DIR$/pom.xml" />
 | 
				
			||||||
 | 
					      </list>
 | 
				
			||||||
 | 
					    </option>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK" />
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										6
									
								
								backend/.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								backend/.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="VcsDirectoryMappings">
 | 
				
			||||||
 | 
					    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										10
									
								
								backend/.run/Application.run.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								backend/.run/Application.run.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					<component name="ProjectRunConfigurationManager">
 | 
				
			||||||
 | 
					  <configuration default="false" name="Application" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
 | 
				
			||||||
 | 
					    <option name="ACTIVE_PROFILES" />
 | 
				
			||||||
 | 
					    <module name="entrance" />
 | 
				
			||||||
 | 
					    <option name="SPRING_BOOT_MAIN_CLASS" value="com.cxyxiaomo.entrance.Application" />
 | 
				
			||||||
 | 
					    <method v="2">
 | 
				
			||||||
 | 
					      <option name="Make" enabled="true" />
 | 
				
			||||||
 | 
					    </method>
 | 
				
			||||||
 | 
					  </configuration>
 | 
				
			||||||
 | 
					</component>
 | 
				
			||||||
@@ -5,7 +5,7 @@
 | 
				
			|||||||
	<parent>
 | 
						<parent>
 | 
				
			||||||
		<groupId>org.springframework.boot</groupId>
 | 
							<groupId>org.springframework.boot</groupId>
 | 
				
			||||||
		<artifactId>spring-boot-starter-parent</artifactId>
 | 
							<artifactId>spring-boot-starter-parent</artifactId>
 | 
				
			||||||
		<version>2.7.5</version>
 | 
							<version>2.7.4</version>
 | 
				
			||||||
		<relativePath/> <!-- lookup parent from repository -->
 | 
							<relativePath/> <!-- lookup parent from repository -->
 | 
				
			||||||
	</parent>
 | 
						</parent>
 | 
				
			||||||
	<groupId>com.cxyxiaomo</groupId>
 | 
						<groupId>com.cxyxiaomo</groupId>
 | 
				
			||||||
@@ -17,26 +17,30 @@
 | 
				
			|||||||
		<java.version>11</java.version>
 | 
							<java.version>11</java.version>
 | 
				
			||||||
	</properties>
 | 
						</properties>
 | 
				
			||||||
	<dependencies>
 | 
						<dependencies>
 | 
				
			||||||
 | 
							<!-- spring -->
 | 
				
			||||||
 | 
							<dependency>
 | 
				
			||||||
 | 
								<groupId>org.springframework.boot</groupId>
 | 
				
			||||||
 | 
								<artifactId>spring-boot-starter-test</artifactId>
 | 
				
			||||||
 | 
								<scope>test</scope>
 | 
				
			||||||
 | 
							</dependency>
 | 
				
			||||||
 | 
							<!-- mybatis -->
 | 
				
			||||||
		<dependency>
 | 
							<dependency>
 | 
				
			||||||
			<groupId>org.mybatis.spring.boot</groupId>
 | 
								<groupId>org.mybatis.spring.boot</groupId>
 | 
				
			||||||
			<artifactId>mybatis-spring-boot-starter</artifactId>
 | 
								<artifactId>mybatis-spring-boot-starter</artifactId>
 | 
				
			||||||
			<version>2.2.2</version>
 | 
								<version>2.2.2</version>
 | 
				
			||||||
		</dependency>
 | 
							</dependency>
 | 
				
			||||||
 | 
							<!-- mysql -->
 | 
				
			||||||
		<dependency>
 | 
							<dependency>
 | 
				
			||||||
			<groupId>mysql</groupId>
 | 
								<groupId>mysql</groupId>
 | 
				
			||||||
			<artifactId>mysql-connector-java</artifactId>
 | 
								<artifactId>mysql-connector-java</artifactId>
 | 
				
			||||||
			<scope>runtime</scope>
 | 
								<scope>runtime</scope>
 | 
				
			||||||
		</dependency>
 | 
							</dependency>
 | 
				
			||||||
 | 
							<!-- lombok -->
 | 
				
			||||||
		<dependency>
 | 
							<dependency>
 | 
				
			||||||
			<groupId>org.projectlombok</groupId>
 | 
								<groupId>org.projectlombok</groupId>
 | 
				
			||||||
			<artifactId>lombok</artifactId>
 | 
								<artifactId>lombok</artifactId>
 | 
				
			||||||
			<optional>true</optional>
 | 
								<optional>true</optional>
 | 
				
			||||||
		</dependency>
 | 
							</dependency>
 | 
				
			||||||
		<dependency>
 | 
					 | 
				
			||||||
			<groupId>org.springframework.boot</groupId>
 | 
					 | 
				
			||||||
			<artifactId>spring-boot-starter-test</artifactId>
 | 
					 | 
				
			||||||
			<scope>test</scope>
 | 
					 | 
				
			||||||
		</dependency>
 | 
					 | 
				
			||||||
	</dependencies>
 | 
						</dependencies>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<build>
 | 
						<build>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,10 +4,10 @@ import org.springframework.boot.SpringApplication;
 | 
				
			|||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
 | 
					import org.springframework.boot.autoconfigure.SpringBootApplication;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@SpringBootApplication
 | 
					@SpringBootApplication
 | 
				
			||||||
public class EpidemicPreventionPlatformApplication {
 | 
					public class Application {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public static void main(String[] args) {
 | 
						public static void main(String[] args) {
 | 
				
			||||||
		SpringApplication.run(EpidemicPreventionPlatformApplication.class, args);
 | 
							SpringApplication.run(Application.class, args);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -4,7 +4,7 @@ import org.junit.jupiter.api.Test;
 | 
				
			|||||||
import org.springframework.boot.test.context.SpringBootTest;
 | 
					import org.springframework.boot.test.context.SpringBootTest;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@SpringBootTest
 | 
					@SpringBootTest
 | 
				
			||||||
class EpidemicPreventionPlatformApplicationTests {
 | 
					class ApplicationTests {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@Test
 | 
						@Test
 | 
				
			||||||
	void contextLoads() {
 | 
						void contextLoads() {
 | 
				
			||||||
		Reference in New Issue
	
	Block a user