与Struts2进行Angular 4集成 [英] Angular 4 integration with struts2
问题描述
我对Angle 4还是陌生的,是否可以将Struts 4与Struts集成在一起并使其休眠?如果是,则将web.xml jsp文件保持在休眠状态等位置.将struts jar保留在哪里?任何示例代码或文档链接都会有很大帮助.
I am new to angular 4. Is it possible to integrate angular 4 with struts and hibernate ? If yes, then where to keep web.xml jsp file hibernate etc. Where to keep struts jar? any example code or documentation link will be of great help.
推荐答案
您在单独的项目或模块中开发的Angular2/4应用程序,甚至可能使用单独的IDE.后端可以使用具有Web API端点的任何技术.
Angular2/4 app you develop in the separate project or module, probably even using separate IDE. The backend might use any technology that has a web API endpoints.
如果后端是Struts,则应通过操作映射器来映射端点.
If the backend is Struts then endpoints should be mapped via the action mapper.
如果没有集成,Struts不能与Hibernate一起使用,您应该将Struts与Hibernate集成,或者将Spring与Hibernate集成,然后将Struts与Spring集成.
Also Struts doesn't work with Hibernate without integration, you should integrate Struts with Hibernate, or Spring with Hibernate and then integrate Struts with Spring.
这篇关于与Struts2进行Angular 4集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!