Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

composite/spring4-mvc-embed-tomcat7-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring 4.0.0.RELEASE Template for MVC with Embedded Tomcat 7.0.47

This project is minimal setting of Spring 4 MVC. maybe.

Before use this project

  • Java 1.6 and later
  • favorite text editor or Eclipse or STS.
  • Experience of Spring MVC.

How to?

  • Download or git clone
  • mvn install
  • java -jar "PROJECT.jar"
  • http://localhost:8080

Goals

  • Fully Websocket!
  • I wanna make Production use!!!
  • JSP forward (but less PRIORITY. because I'll not use JSP View at my production.)

Changelog

  • View page solved. When get context, you must call Tomcat.initWebappDefaults(context);
  • Static resources solved. registry.addResourceHandler("/js/**").addResourceLocations("classpath:/static/js/")
  • jade4j and Thymeleaf support (but with Thymeleaf, JSP not work. why?)
  • JSP resolver removed dut to unable forward JSP file in JAR. use Thymeleaf or jade4j instead until solve this problem.
  • parameterized port change and tomcat workdir changeable. java -jar "PROJECT.jar" port=8081 basedir=/path/to/tomcat/workdir
  • Websocket support by puryfury. thanks.
  • embedded Tomcat will run with Non-blocking HTTP IO (Http11NioProtocol).

Websocket notes

Known Issues

  • Why can't forward JSP file in JAR? It's possible in Servlet 3.0 but not affect in embedded tomcat.
  • NOT STABLE. PLZ DO NOT USE THIS AT PRODUCTION YET.

About

This project is minimal setting of Spring 4 MVC. maybe.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published