這個建方比較干凈,不會生成亂七八糟的東西,(建完以后,其它模塊可以 Copy 改名字)


選擇 Maven 直接下一步

只要輸入一個AtifactId


沒有過多的依賴,適合專業人事

建主啟動程序

建 controller,這邊指定了路由

@GetMapping(value = "/login") == @RequestMapping(value = "/login",method = RequestMethod.GET)

工程中有多個啟動程序,會出現 Run Dashboard 方便操作【微服務的起步】

附上: vipsoft-model-user.pom
<?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>vipsoft-parent</artifactId> <groupId>com.vipsoft.boot</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>vipsoft-model-user</artifactId> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
