u_r_l错误-打包方式Failed to configure a data source: u-r-l attribute is not specified and no embedded

在项目中出现下面的错误:
u_r_l错误-打包方式Failed to configure a data source: u-r-l attribute is not specified and no embedded
1.先检查model的pom.xml文件,如果出现pom就需要删掉或者改成war。
u_r_l错误-打包方式Failed to configure a data source: u-r-l attribute is not specified and no embedded
2.再检查该model下的test是否有东西,如果有就删除,再 file->Invalidate Caches/Restart 重启idea即可。