Depencies:
org.springframework.boot:spring-boot-starter-graphql:2.7.1
org.springframework.boot:spring-boot-starter-web:2.7.1
Simple controller with mock dao:
@Controller
@RequiredArgsConstructor
public class ProfileController {
private final ProfileDao dao;
@QueryMapping
public ProfileModel profile(@Argument String msisdn, DataFetchingEnvironment environment) {
return dao.getProfile(msisdn);
}
}
Profile model is a simple record object.
Problem is there is no graphql or my custom http endpoint. I've tried following :
spring.graphql.path=/profile
graphql.servlet.mapping=/profile
graphql.url=/profile