修正
This commit is contained in:
parent
93689dc7d0
commit
788ff97bd6
@ -10,8 +10,8 @@
|
||||
<module name="springboot_01_02_quickstart" />
|
||||
<module name="springboot_01_04_quickstart" />
|
||||
<module name="springboot_04_junit" />
|
||||
<module name="springboot_03_yaml" />
|
||||
<module name="springboot_05_mybatis" />
|
||||
<module name="springboot_03_yaml" />
|
||||
<module name="springboot_01_01_quickstart" />
|
||||
<module name="demo" />
|
||||
<module name="springboot_02_base_configuration" />
|
||||
|
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: org.springframework.boot:spring-boot-configuration-processor:3.0.3">
|
||||
<CLASSES>
|
||||
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-configuration-processor/3.0.3/spring-boot-configuration-processor-3.0.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-configuration-processor/3.0.3/spring-boot-configuration-processor-3.0.3-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-configuration-processor/3.0.3/spring-boot-configuration-processor-3.0.3-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
@ -2,7 +2,6 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/springboot_01_01_quickstart/src/main/main.iml" filepath="$PROJECT_DIR$/springboot_01_01_quickstart/src/main/main.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/springboot_01_01_quickstart/springboot_01_01_quickstart.iml" filepath="$PROJECT_DIR$/springboot_01_01_quickstart/springboot_01_01_quickstart.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/springboot_01_02_quickstart/springboot_01_02_quickstart.iml" filepath="$PROJECT_DIR$/springboot_01_02_quickstart/springboot_01_02_quickstart.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/springboot_01_03_quickstart/springboot_01_03_quickstart.iml" filepath="$PROJECT_DIR$/springboot_01_03_quickstart/springboot_01_03_quickstart.iml" />
|
||||
|
33
springboot_01_01_quickstart/.gitignore
vendored
Normal file
33
springboot_01_01_quickstart/.gitignore
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
HELP.md
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
41
springboot_01_01_quickstart/pom.xml
Normal file
41
springboot_01_01_quickstart/pom.xml
Normal file
@ -0,0 +1,41 @@
|
||||
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.0.4</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.yv</groupId>
|
||||
<artifactId>springboot_01_01_quickstart</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>springboot_01_01_quickstart</name>
|
||||
<description>Demo project for Spring Boot</description>
|
||||
<properties>
|
||||
<java.version>17</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,13 @@
|
||||
package com.yv;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class Springboot0101QuickstartApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Springboot0101QuickstartApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
10
springboot_01_01_quickstart/src/main/java/com/yv/User.java
Normal file
10
springboot_01_01_quickstart/src/main/java/com/yv/User.java
Normal file
@ -0,0 +1,10 @@
|
||||
package com.yv;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author YoVinchen
|
||||
*/
|
||||
@Component
|
||||
public class User {
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.yv.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* Rest模式
|
||||
*
|
||||
* @author YoVinchen
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/books")
|
||||
public class BookController {
|
||||
@GetMapping
|
||||
public String getById() {
|
||||
System.out.println("springBoot is running ......");
|
||||
return "springBoot is running ......";
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.yv;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class Springboot0101QuickstartApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
@ -3,6 +3,9 @@ package com.yv;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* @author yovinchen
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class Springboot04JunitApplication {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user