我是大图豪
2019-01-23 22:03
:: Spring Boot :: (v2.1.2.RELEASE)
2019-01-23 22:01:19.962 INFO 7536 --- [ main] c.i.f.FirstAppDemoApplication : Starting FirstAppDemoApplication on LAPTOP-9P9P0915 with PID 7536 (E:\imooc\first-app-demo\target\classes started by sunlh in E:\imooc\first-app-demo)
2019-01-23 22:01:19.970 INFO 7536 --- [ main] c.i.f.FirstAppDemoApplication : No active profile set, falling back to default profiles: default
2019-01-23 22:01:23.402 INFO 7536 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port(s): 8080
2019-01-23 22:01:23.408 INFO 7536 --- [ main] c.i.f.FirstAppDemoApplication : Started FirstAppDemoApplication in 4.236 seconds (JVM running for 5.46)
没有加载上Controller,也访问不到。。。
你这里启动的日志没什么问题, 把controller的代码发出来。
Controller 注册为 Spring 的 bean 了吗?就是有加 @Controller 或者 @Component 这些注解了嘛
Spring Boot 2.0深度实践-初遇Spring Boot
75471 学习 · 212 问题
相似问题