1.添加依赖spring-boot-starter-web
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2.创建Html界面
在Resources/static 文件夹下面建立对应的html,比如我这边建立一个pages文件夹,然后再建立一个WelinkLogin的html界面。
3.完成
输入地址:运行输入地址http://localhost:8080/pages/welinklogin.html