Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
程序员文章站
2022-01-30 20:46:58
...
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
原因
原因:
未能配置数据源:未指定“url”属性,无法配置嵌入的数据源。
无法确定合适的驱动程序类
解决方案
在配置文件添加url
spring.datasource.name=defaultDataSource
# 数据库连接地址
spring.datasource.url=jdbc:mysql://localhost:3306/news_user?serverTimezone=Hongkong&useUnicode=true&characterEncoding=utf8
# 数据库用户名&密码:
spring.datasource.username=root
spring.datasource.password=root
下一篇: Error starting ApplicationContext. To display the conditions report re-run your application with de
推荐阅读
-
SpringBoot报错:Error starting ApplicationContext. To display the conditions report...........
-
springboot错误:Error starting ApplicationContext. To display the conditions report re-run your applica
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled
-
springboot启动报错,Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled