springboot,运行正常,但是在浏览器,路径访问不到

问题遇到的现象和发生背景

springboot,运行正常,但是在浏览器,路径访问不到

问题相关代码,请勿粘贴截图

:: Spring Boot :: (v2.6.4)

2022-03-17 13:35:10.070 INFO 5388 --- [ main] com.yz.SpringbootApplication : Starting SpringbootApplication using Java 1.8.0_321 on yzhs with PID 5388 (D:\MyJava\springboot\target\classes started by 24994 in D:\MyJava\springboot)
2022-03-17 13:35:10.076 INFO 5388 --- [ main] com.yz.SpringbootApplication : No active profile set, falling back to 1 default profile: "default"
2022-03-17 13:35:10.890 INFO 5388 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8082 (http)
2022-03-17 13:35:10.890 INFO 5388 --- [ main] o.a.catalina.core.AprLifecycleListener : Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
2022-03-17 13:35:10.890 INFO 5388 --- [ main] o.a.catalina.core.AprLifecycleListener : APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
2022-03-17 13:35:10.892 INFO 5388 --- [ main] o.a.catalina.core.AprLifecycleListener : APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
2022-03-17 13:35:10.894 INFO 5388 --- [ main] o.a.catalina.core.AprLifecycleListener : OpenSSL successfully initialized [OpenSSL 1.1.1l 24 Aug 2021]
2022-03-17 13:35:10.903 INFO 5388 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-03-17 13:35:10.903 INFO 5388 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.58]
2022-03-17 13:35:10.988 INFO 5388 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/yml] : Initializing Spring embedded WebApplicationContext
2022-03-17 13:35:10.988 INFO 5388 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 868 ms
2022-03-17 13:35:11.292 INFO 5388 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8082 (http) with context path '/yml'
2022-03-17 13:35:11.299 INFO 5388 --- [ main] com.yz.SpringbootApplication : Started SpringbootApplication in 1.675 seconds (JVM running for 2.428)
Process finished with exit code -1

运行结果及报错内容

http://localhost:8080/UserController/customConfiguration(浏览器访问时
HTTP Status 404 – Not Found(出现404)

我的解答思路和尝试过的方法

包路径改了,win11开启web服务了,没用

我想要达到的结果

能在浏览器访问出来就行,麻烦各位

img

你这个自己配了tomcat吧????这端口是8082

img


端口不是8082么

img

看控制台输出看不出来