2022-05-07 13:48:19.803 INFO 2288 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication v0.0.1-SNAPSHOT using Java 1.8.0_181 on 10_0_16_11 with PID 2288 (C:\Users\Administrator\Desktop\测试8080端口\demo-0.0.1-SNAPSHOT.jar started by Administrator in C:\Users\Administrator\Desktop\测试8080端口)
2022-05-07 13:48:19.819 INFO 2288 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default"
2022-05-07 13:48:21.892 INFO 2288 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-05-07 13:48:21.920 INFO 2288 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-05-07 13:48:21.920 INFO 2288 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.62]
2022-05-07 13:48:22.225 INFO 2288 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-05-07 13:48:22.225 INFO 2288 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2250 ms
2022-05-07 13:48:22.901 INFO 2288 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2022-05-07 13:48:22.918 INFO 2288 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 3.848 seconds (JVM running for 4.67)
2022-05-07 13:49:04.984 INFO 2288 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-05-07 13:49:04.984 INFO 2288 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2022-05-07 13:49:04.984 INFO 2288 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 0 ms
404表明服务应该正常了
只是服务地址没有,估计是写错地址了吧