springboot对应数据库创建
作者:互联网
1.数据库music以及字符集和排序规则如下:
2.springboot项目中application.properties 配置内容:
server.port=8888 spring.datasource.url=jdbc:mysql://localhost:3308/music?serverTimeZone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false spring.datasource.username=root spring.datasource.password=123456 spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
标签:jdbc,springboot,spring,创建,数据库,music,datasource,mysql 来源: https://www.cnblogs.com/jingzaixin/p/16534265.html