spring.datasource.url = jdbc:mysql://localhost:3306/emp?useUnicode=true&characterEncoding=utf-8
spring.datasource.username = root
spring.datasource.password = 》》》》》》
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
spring.datasource.type = org.apache.tomcat.jdbc.pool.DataSource
########################################################
### Java Persistence Api -- Spring jpa configuration.
########################################################
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = true
# Hibernate ddl auto (create, create-drop, update, validate, none)
spring.jpa.hibernate.ddl-auto = update
# Naming strategy
#[org.hibernate.cfg.ImprovedNamingStrategy #org.hibernate.cfg.DefaultNamingStrategy]
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)
![](https://i-blog.csdnimg.cn/blog_migrate/91b4f3e873ab99e82e24baf2c5a40bf4.png)
![](https://i-blog.csdnimg.cn/blog_migrate/b2c52c1b8984e2a47bf67632200ddd83.png)
如果jc 报错
pring.datasource.driverClassName = com.mysql.jdbc.Driver