diff --git a/README.md b/README.md index 17141be..f066444 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ `mvn clean install` from the root of the project. +--- +## Fixed +Per [spring-graphql/issues/489](https://github.com/spring-projects/spring-graphql/issues/489#issuecomment-1249089331) changing `spring.graphql.schema.locations` to `classpath*:graphql/**/` caused schema files in animals module to be picked up. + +--- +## Original Issue + Only works when you move the `schema.graphqls` from the `animal` module to the `app` module. ![](img/Screenshot from 2022-09-15 16-46-39_2.png) diff --git a/app/src/main/resources/application.properties b/app/src/main/resources/application.properties index 7f00d93..2261de0 100644 --- a/app/src/main/resources/application.properties +++ b/app/src/main/resources/application.properties @@ -1,9 +1,7 @@ +# old value spring.graphql.schema.locations=classpath:/graphql/ +spring.graphql.schema.locations=classpath*:graphql/**/ -#spring.graphql.schema.locations=classpath:graphql/*,BOOT-INF/lib/*.jar!/graphql/* -#spring.graphql.schema.locations=classpath:/graphql/,BOOT-INF/lib/animals-0.0.1-SNAPSHOT.jar!/graphql/ -spring.graphql.schema.locations=classpath:/graphql/ -#,BOOT-INF/lib/*.jar!/graphql/* spring.graphql.cors.allowed-methods=POST spring.graphql.path=/graphql spring.graphql.graphiql.enabled=true