spring_boot_all_study/SpringBootJPA/target/classes/application.properties

14 lines
526 B
Properties
Raw Normal View History

2019-08-17 10:19:41 +00:00
# 设置项目的端口号
server.port=9081
#设置工程名字
server.servlet.context-path=/b
# 数据库的信息
spring.datasource.url = jdbc:mysql://localhost:3306/java10?useSSL=false&serverTimezone=Asia/Shanghai
spring.datasource.username = root
spring.datasource.password = Java20190713*yy
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
spring.jpa.database = MYSQL
# spring.jpa.show-sql = true 表示会在控制台打印执行的sql语句
spring.jpa.show-sql = true
spring.jpa.hibernate.ddl-auto = update