错误提示
Description:
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine suitable jdbc url
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).
Disconnected from the target VM, address: ‘127.0.0.1:60306’, transport: ‘socket’
Process finished with exit code 0
解决办法
这个情况有两种一种是你的配置出错了,比如jdbc ip端口账号密码什么的没写
第二种是一定要把spring boot启动类放在最外侧