简体   繁体   中英

Using spring core functionalities in tomcat based jersey application

I want to use spring's dependency injection for now(other core functionalites later maybe) in tomcat application.

I want to set up spring 2.5.5 in tomcat7, But don't have clarity on how to do this.

Specifically I am confused because I don't know whether to use Spring MVC or use just spring in tomcat.

I found this question helpful: Tomcat with Spring , But still didn't get the whole scenario on how to setup tomcat with spring.

You can do either, using just core spring with tomcat is fine. MVC provides additional functionality .

Take a look at the spring source examples on github, and read their docs.

(BTW I thouroughy spring-MVC component - it really saves time developing webapps)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM