转自:https://blog.csdn.net/xlecho/article/details/85015508
springboot中创建静态资源,需要访问最关键的只需要创建一个配置类即可
创建springboot工程
创建的时候加入web依赖
工程目录结构
创建静态页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WelCom</title>
</head>
<body>
<h2>Hello World!</h2>
</body>
</html>