第一次學習springboot,啟動有些問題,如下圖,第一次學,還請大神指教
?:: 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,也訪問不到。。。
2019-03-07
你這里啟動的日志沒什么問題, 把controller的代碼發出來。
2019-01-26
Controller 注冊為 Spring 的 bean 了嗎?就是有加 @Controller 或者 @Component 這些注解了嘛