zyy
2025-07-14 4b442bd9648115e6ef6fbe3fb8f6b7b1e6d30785
src/main/resources/application.yml
@@ -15,6 +15,8 @@
      min-spare: 100
# 日志配置
logging:
  file:
    encoding: UTF-8
  level:
    com.ruoyi: debug
    org.springframework: warn
@@ -73,7 +75,7 @@
    baseline-version: 0
    #数据库连接配置
    url: ${spring.datasource.url}
    user: ${spring.datasource.name}
    user: ${spring.datasource.username}
    password: ${spring.datasource.password}
    locations: classpath:db/migration/ #(根据个人情况设置,多个路径使用逗号分隔)
    #版本控制日志表,默认flyway_schema_history
@@ -89,7 +91,7 @@
  devtools:
    restart:
      # 热部署开关
      enabled: true
      enabled: false
  freemarker:
    cache: false    #false 页面不设置缓存,更改及生效!
@@ -122,9 +124,10 @@
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://45.204.85.67:7306/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
    name: root
    password: Tji7mxYsCxsxCLsG
    url: jdbc:mysql://127.0.0.1:3306/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
#    url: jdbc:mysql://127.0.0.1:3306/cgstock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
    username: root
    password: 123456
    druid:
      # 初始连接数
      initialSize: 5
@@ -165,3 +168,9 @@
        wall:
          config:
            multi-statement-allow: false
  jpa:
    hibernate:
      ddl-auto: none  # 可选值: create, create-drop, update, validate, none
    show-sql: false      # 显示SQL语句
    properties:
      hibernate.format_sql: true  # 格式化SQL语句