Example controller that uses a View which has global state injected into it via a
handler interceptor.
- Author:
- dsyer
-
Constructor Summary
Constructors
-
Method Summary
Here we use the global configurer to inject state into the
View
.
Here we use the return value type to construct a
View
that will be
rendered.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MessageController
Created by Spring
-
Method Details
-
message
Here we use the global configurer to inject state into the
View
.
- Returns:
- view
-
msg
Here we use the return value type to construct a
View
that will be
rendered.
- Returns:
- the jstache model that will be rendered