文章目录 场景原因解决 场景 idea开发正常,部署war报错 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource 原因 包中缺少数据库配置 解决 将配置文件打到包中去 <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> </includes> </resource>