北京经济技术开发区经开区虚拟城市项目-【后端】-服务,会议保障等定制接口
AdaKing88
2023-10-27 6702972701b2af35e34815838cc814b86192a9c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#应用名称
spring.application.name=AdaKing88
#访问端口
server.port=8080
 
#自动生成数据库表(关键)
spring.jpa.hibernate.ddl-auto=update
#mysql数据库连接配置(非常重要)
spring.datasource.url=jdbc:mysql://localhost:3306/study_data?allowMultiQueries=true&useUnicode=true&rewriteBatchedStatements=true&characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8
#数据库用户名
spring.datasource.username = root
#数据库密码
spring.datasource.password = v123456
#mysql数据库驱动程序(重要)
spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
#jpa配置:在控制台显示Hibernate的sql(可选)
spring.jpa.show-sql = true
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
#其他配置:关闭Thymeleaf 的缓存
spring.thymeleaf.cache = false