| | |
| | | |
| | | --- # 数据源配置 |
| | | spring: |
| | | jpa: |
| | | show-sql: true |
| | | generate-ddl: true |
| | | open-in-view: false |
| | | hibernate: |
| | | ddl-auto: validate |
| | | properties: |
| | | hibernate: |
| | | format_sql: true |
| | | |
| | | graphql: |
| | | path: /graphql |
| | | graphiql: |
| | | enabled: true |
| | | path: /graphiql |
| | | cors: |
| | | allow-credentials: true |
| | | allowed-headers: '*' |
| | | allowed-methods: '*' |
| | | schema: |
| | | locations: |
| | | - classpath*:graphql/ |
| | | file-extensions: |
| | | - .graphql |
| | | - .gqls |
| | | printer: |
| | | enabled: true |
| | | datasource: |
| | | type: com.zaxxer.hikari.HikariDataSource |
| | | # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content |