SpringBoot 数据库配置

application.properties

spring.profiles.active=dev

application-dev.properties

spring.datasource.url=jdbc:mysql://localhost:3306/helloWorld?serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=update

猜你喜欢

转载自blog.csdn.net/qq_42026590/article/details/108463508