Spring和Struts可以在同一个JVM中运行吗?
是否有人对在已经运行 Struts 的应用服务器上使用 Spring 有任何警告? 我对 Struts 和 Spring 都有点陌生,所以我不确定它们是否共享任何相同的依赖项。我刚刚加入一个新团队,我们使用 Struts 运行一些非常重要的 Web 应用程序。对于我的环境来说,服务器是 Apache Tomcat 5.5.25 ,我们正在使用 Java JDK 1.5.0_12 。我不一定会尝试使用任何相同的资源(即数据库连接),但我不希望某些 JRE 组件由于我的应用程序而崩溃。
提前致谢!
Does anyone have any warnings against using Spring on an app server that's already running Struts? I'm a little new to both Struts and Spring, so I'm not sure if they share any of the same dependencies. I've just joined a new team and we run some pretty critical web apps with Struts. For what it's worth with my environment the server is Apache Tomcat 5.5.25 and we're working with the Java JDK 1.5.0_12 . I wouldn't be necessarily trying to use any of the same resources (i.e. Database connections), but I wouldn't want some JRE component to blowup due to my application.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当然你能做到。参见例如。
http://www.javabeat.net/articles/70 -integrating-struts-with-spring-1.html
sure you can do it. See for example.
http://www.javabeat.net/articles/70-integrating-struts-with-spring-1.html
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html
两者一起运行是没有问题的,我已经这样做了,非常棒!
There is no problem to run both together, I`ve already done that and was great!