# 服务端口 server.port=8080 # MySQL 数据源(按需求使用 MySQL 5.x) spring.datasource.url=jdbc:mysql://192.168.8.3:3306/gameparlor?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true spring.datasource.username=root spring.datasource.password=xiaoyu spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver # JPA spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=false spring.jpa.properties.hibernate.format_sql=false spring.jpa.open-in-view=true # 全局引号标识符,兼容 MySQL 保留字(user、value 等) spring.jpa.properties.hibernate.globally_quoted_identifiers=true # 不自动执行 schema.sql / data.sql(由用户手动在 MySQL 中执行;H2 验证时同样跳过) spring.sql.init.mode=never # 静态资源 spring.web.resources.static-locations=classpath:/static/