Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded

异常如下图: 解决方法: 1.配置文件(application.properties)配置数据库连接信息 2.在SpringBoot启动程序中添加(exclude=DataSourceAutoConfiguration.class)排除JDBC自动装配。
相关文章
相关标签/搜索