The simple demo of the springboot project starts and ends, the solution

1: Configure the yml file

server:
  port: 8080
  servlet:
    context-path: /

2: Need to add a container, similar to tomcat, add dependencies

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

Guess you like

Origin blog.csdn.net/qq_19891197/article/details/130844116