From 5589258324faa6d9e1ec7e5226e98dc2e1a18adc Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 05 二月 2024 09:28:34 +0800 Subject: [PATCH] 集成graphql和jpa --- dujy-admin/src/main/resources/application-dev.yml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/dujy-admin/src/main/resources/application-dev.yml b/dujy-admin/src/main/resources/application-dev.yml index ea6d08d..9eda0cc 100644 --- a/dujy-admin/src/main/resources/application-dev.yml +++ b/dujy-admin/src/main/resources/application-dev.yml @@ -26,6 +26,33 @@ --- # 鏁版嵁婧愰厤缃� 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 -- Gitblit v1.8.0