首页 新闻 搜索 专区 学院

jar 在windows servier 启动 成功了 但是访问是404 本机测试是可以的 这种有没有人遇到过

0
悬赏园豆:5 [待解决问题]

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

UP技术控的主页 UP技术控 | 初学一级 | 园豆:4
提问于:2022-05-07 14:00
< >
分享
所有回答(1)
1

404表明服务应该正常了
只是服务地址没有,估计是写错地址了吧

2012 | 园豆:21058 (高人七级) | 2022-05-09 16:19
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册