Complete the controller request

Report a typo

Complete the code so that it produces a text HTML value.

Java
@Controller
public class CustomerController {

    @GetMapping(value = "/customer", produces = __________)
    @ResponseBody
    public String greetCustomer() {
        return "<html><p>Welcome to our site customer!</p></html>";
    }
}
Kotlin
@Controller
class CustomerController {

    @GetMapping(value = ["/customer"], produces = [__________])
    @ResponseBody
    fun greetCustomer(): String {
        return "<html><p>Welcome to our site customer!</p></html>"
    }
}
Select one option from the list
___

Create a free account to access the full topic