draft integration of spring mvc: fix some bugs:
- remove needless checks