控制台日志显示如下几行: 2018-11-20 18:11:26.398 INFO 9404 --- [ main] com.zy.learning.Springboot1Application : Starting Springboot1Application on TTP-20160907XQO with PID 9404 (D:\workspace\bootstudy\springboot1\target\classes started by Administrator in D:\workspace\bootstudy\springboot1) 2018-11-20 18:11:26.404 INFO 9404 --- [ main] com.zy.learning.Springboot1Application : No active profile set, falling back to default profiles: default 解决办法: 点击导航 File-Project Structure-Modules-Dependencies 找到 tomcat-embed-core 将其Scope改为compile即可,再次运行成功启动~
|
|
来自: Go_Ahead > 《springboot》