简体   繁体   English

在基于tomcat的球衣应用程序中使用spring核心功能

[英]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. 我现在想在tomcat应用程序中使用spring的依赖项注入(可能稍后再使用其他核心功能)。

I want to set up spring 2.5.5 in tomcat7, But don't have clarity on how to do this. 我想在tomcat7中设置spring 2.5.5,但不清楚如何做到这一点。

Specifically I am confused because I don't know whether to use Spring MVC or use just spring in tomcat. 具体来说,我很困惑,因为我不知道在tomcat中使用Spring MVC还是仅使用spring。

I found this question helpful: Tomcat with Spring , But still didn't get the whole scenario on how to setup tomcat with spring. 我发现这个问题很有用: 使用Spring的Tomcat ,但是仍然没有获得有关如何使用spring设置tomcat的整个方案。

You can do either, using just core spring with tomcat is fine. 您可以执行任何一种操作,仅将tomcat的核心弹簧使用即可。 MVC provides additional functionality . MVC提供了其他功能

Take a look at the spring source examples on github, and read their docs. 看一下github上的spring源示例,并阅读他们的文档。

(BTW I thouroughy spring-MVC component - it really saves time developing webapps) (顺便说一句,我是thouroughy spring-MVC组件-它确实节省了开发Web应用程序的时间)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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