unity创建一个简单对象的开销_SpringBoot第一篇:创建一个简单的SpringBoot

2022-06-20 14:09:56

1.1.打开idea创建工程:

File-New-Project

0993e9bc9fccd49a78ed75aae00bb2cc.png

输入包名和项目名 ,点击 next

bbf130ce98e0d343e3670616d27ae115.png

这里可以不选,习惯性的选一个web

528507fe96d71cf22dcfad4051af4a51.png

创建成功后目录结构

4806e18fa86c04906141bc6dbd91cf74.png

1.2对应的pom.xml文件:

<?xml version="1.0" encoding="UTF-8"?>4.0.0org.springframework.boot        spring-boot-starter-parent        2.2.7.RELEASEcom.firstwave    sf-springboot    0.0.1-SNAPSHOTsf-springbootDemo project for Spring Boot1.8org.springframework.boot            spring-boot-starter-web        org.springframework.boot            spring-boot-starter-test            testorg.junit.vintage                    junit-vintage-engine                org.springframework.boot                spring-boot-maven-plugin

1.3配置文件

在配置文件application.properties指定一个启动端口

server.port=8888
e2f6862700a38b5db8f9355a4b4251b6.png

1.4启动成功后控制台:

21d1857ef0ce38f3ae0855ac9790c046.png

对,就是这么简单!

  • 作者:weixin_39618121
  • 原文链接:https://blog.csdn.net/weixin_39618121/article/details/112152062
    更新时间:2022-06-20 14:09:56