lrj
3 天以前 93eb6b470773bc49ea6e1a9d4cbd914eb95d525b
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.rongyichuang.common.api;
 
import org.springframework.graphql.data.method.annotation.QueryMapping;
import org.springframework.stereotype.Controller;
 
@Controller
public class HelloGraphqlApi {
 
    @QueryMapping
    public String hello() {
        return "Hello GraphQL!";
    }
}