想问下各位,这是Spring3.0的新BUG吗,由于是初学者 直接用了最新版本,卡了好几天了。不知道为啥,这个resource文件一直加载不进去。而且非常奇怪的是,我把这个模块单拎出来重新创建单模块项目就没有任何问题,数据库能连上,数据也可以拿到。
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
网上查了无数方法,都没用,项目结构如下图,这是多模块开发

而且非常奇怪的是,我把这个模块单拎出来重新创建单模块项目就没有任何问题,数据库能连上,数据也可以拿到
单独创建的单模块项目运行成功,可以获取数据(代码完全复制的,版本也是SpringBoot最高版本)

感谢各位。
追加下,模块之间的依赖,只有模块C1 引用了模块B,模块A2
