Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[14:55:24 CDT(-0500)] <EricDalquist> yup

[14:55:37 CDT(-0500)] <EricDalquist> class MyController implements ServletContextAware {

[14:55:38 CDT(-0500)] <EricDalquist> }

[14:55:47 CDT(-0500)] <EricDalquist> adds a setServletContext(ServletContext) method

[14:55:51 CDT(-0500)] <EricDalquist> which spring calls at app init

[14:56:28 CDT(-0500)] <EricDalquist> or what may be even easier is to have the rest API impl take ServletContext as a constructor arg

[14:56:33 CDT(-0500)] <EricDalquist> and wire it up in the spring XML