Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Real simple webapp example
Java
branch: master

updated README.md

latest commit fc3e46d5f8
saem authored

README.md

How to Run

Switched over to jetty, the debug cycle is infinitely easier. Allowing you to trivially test changes, need to setup and auto reloader, but that might require java rebel or some such.

mvn compile jetty:run

I have fixed up the way we define the servlet routes so both jetty and tomcat (with a shared context, not on the root) will work now. Though in my, saem's, opinion, Jetty is the better solution

TODO

Have jetty have different configs for prod/dev etc, show how that would be done

Got the appropriate templates loading now, can't have a template called index.jsp as that seems to hose everything, even if you put it in the WEB-INF/jsp folder, upon packaging the WAR it gets moved out, I'm guessing this is maven 'helping' me.

Have different database configurations for prod/dev/test, along with the Jetty configs

Need to implement suggestions for each talk

Notes

The annotations and the controller routes via names can't be mixed, if you want to do controllers via names you have to implement the Controller interface, that sucks. So I opted out. Of course, I'm not big on annotations either, c'est la vie.

Something went wrong with that request. Please try again.