Error starting ApplicationContext. To display the conditions report re-run your

Spring Boot启动后,访问页面时,运行失败,访问不到页面

如图:当运行后,访问对应页面路径是爆出下面错误,并且页面数据访问不到

Error starting ApplicationContext. To display the conditions report re-run your_第1张图片

解决方案:查看yml文件(大概率在该文件出bug)

后面才发现数据库的账号和密码出现错误:并且查看数据库连接名,还有yml文件的每个属性的缩进都要严格按指定格式来进行:

Error starting ApplicationContext. To display the conditions report re-run your_第2张图片

你可能感兴趣的:(spring,boot)