title: spring boot starter graphql not working
body: <p>I recently started working with <code>graphql</code> and found it very intriguing. Since most of my <code>rest</code> apps were in <code>java</code>, I decided to do a quick setup using the provided <a href="https://github.com/graphql-java/graphql-spring-boot" rel="noreferrer">spring boot starter</a> project by the <code>graphql-java</code> team. It comes with <code>graph-iql</code> autoconf spring setup, which makes it easier to query <code>/graphql</code> endpoint. </p>
  
  <p>After spending a few good hours on the project setup in IDEA, I was able to run the <a href="https://github.com/graphql-java/graphql-spring-boot/tree/master/graphql-sample-app" rel="noreferrer">graphql-sample-app</a>. But I think my servlet is still not enabled, and only the <code>graphiql</code> endpoint is running, as the default query is returning <code>404</code>. </p>
  
  <p>This is <code>application.yml</code>:</p>
  
  <pre><code>spring:
        application:
                 name: graphql-todo-app
  server:
        port: 9000
  
  graphql:
        spring-graphql-common:
                 clientMutationIdName: clientMutationId
                 injectClientMutationId: true
                 allowEmptyClientMutationId: false
                 mutationInputArgumentName: input
                 outputObjectNamePrefix: Payload
                 inputObjectNamePrefix: Input
                 schemaMutationObjectName: Mutation
        servlet:
               mapping: /graphql
               enabled: true
               corsEnabled: true
  
  graphiql:
      mapping: /graphiql
      enabled: true
  </code></pre>
  
  <p>This is what my <code>build.gradle</code> file looks like:</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url "https://plugins.gradle.org/m2/" }
          maven { url 'http://repo.spring.io/plugins-release' }
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
          classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6"
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'org.springframework.boot'
  
  repositories {
      jcenter()
      mavenCentral()
  }
  
  dependencies{
  //    compile(project(":graphql-spring-boot-starter"))
  //    compile(project(":graphiql-spring-boot-starter"))
      compile 'com.graphql-java:graphql-spring-boot-starter:3.6.0'
  
      // to embed GraphiQL tool
      compile 'com.graphql-java:graphiql-spring-boot-starter:3.6.0'
  
      compile "com.embedler.moon.graphql:spring-graphql-common:$LIB_SPRING_GRAPHQL_COMMON_VER"
  
      compile("org.springframework.boot:spring-boot-starter-web")
      compile("org.springframework.boot:spring-boot-starter-actuator")
  
      testCompile("org.springframework.boot:spring-boot-starter-test")
  }
  
  jar.enabled = true
  uploadArchives.enabled = false
  bintrayUpload.enabled = false
  </code></pre>
  
  <p>After running <code>gradle build</code>, I run the generated <code>jar</code> file from the terminal. This is what I get on localhost:</p>
  
  <p><a href="https://i.stack.imgur.com/2qGRf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2qGRf.png" alt="enter image description here"></a></p>