Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the

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启动错误,多半是导入了MySQL的jar包但是数据库的url没有配置

#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?serverTimezone=Asia/Shanghai&allowMultiQueries=true
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#spring.datasource.username=root
#spring.datasource.password=MySQL80

在配置文件中配置好连接数据库的语句即可成功运行

你可能感兴趣的:(java,数据库,mysql,java)