Class MessageController

java.lang.Object
io.jstach.opt.spring.example.message.MessageController

@Controller public class MessageController extends Object
Example controller that uses a View which has global state injected into it via a handler interceptor.
Author:
dsyer
  • Constructor Details

  • Method Details

    • message

      @GetMapping("/message") public View message()
      Here we use the global configurer to inject state into the View.
      Returns:
      view
    • msg

      @GetMapping("/msg") public MessagePage msg()
      Here we use the return value type to construct a View that will be rendered.
      Returns:
      the jstache model that will be rendered