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