zhibo/java-backend/target/classes/application.yml
2025-12-18 14:52:20 +08:00

51 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 3001
spring:
application:
name: livestreaming-backend
# 数据库配置 - 默认使用H2内存数据库开发测试
# 如需使用MySQL请取消下方注释并配置
datasource:
# H2 内存数据库(开发测试用,无需安装)
url: jdbc:h2:file:./data/livestream;AUTO_SERVER=TRUE
driver-class-name: org.h2.Driver
username: sa
password:
# MySQL 配置(生产环境使用)
# url: jdbc:mysql://localhost:3306/livestream?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
# driver-class-name: com.mysql.cj.jdbc.Driver
# username: root
# password: your_password
jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
format_sql: true
# H2 控制台(开发时可访问 http://localhost:3001/h2-console
h2:
console:
enabled: true
path: /h2-console
# 直播服务配置
livestream:
rtmp:
host: localhost
port: 1935
http:
host: localhost
port: 8080
# 日志配置
logging:
level:
com.example.livestreaming: DEBUG
org.hibernate.SQL: DEBUG