这个建方比较干净,不会生成乱七八糟的东西,(建完以后,其它模块可以 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>