用Spring Boot包装Monolith JSF/Spring应用程序 [英] Wrapping a Monolith JSF/Spring application with Spring Boot

查看:46
本文介绍了用Spring Boot包装Monolith JSF/Spring应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队目前有一个旧的JSF 1.1/Spring2/Weblogic Monolith应用程序.当我们开始对应用程序进行现代化改造时,他们希望我们采用当前的体系结构,并基本上将其引入Spring Boot.

My team currently has an old JSF 1.1 / Spring2 / Weblogic Monolith Application. As we start towards modernizing our application they want us to take our current architecture, as is, and basically shoe horn it into Spring Boot.

我们目前还没有在讨论将其分解为微服务,而是从当前设置中提炼出来,使Weblogic脱颖而出,并在带有Hikari数据源的Spring Boot中运行它.

We aren't talking about breaking it down into micro-services at this point, but basically a lift from our current setup, taking Weblogic out of the picture, and running it in Spring Boot with Hikari Data Sources.

这可以轻松完成吗?我没有找到一种无需进行大量代码更改即可实现的方法,并且我不介意建议让我们在下一个产品增量中将其分解为微服务".

Can this be easily done? I haven't found a way to do it without extensive code changes and I don't mind suggesting a "Lets break it down into a micro-services in the next Product Increment" approach.

除了重新架构应用程序(如我们将来的计划)或进行大量代码更改外,还有其他选择吗?

Outside of re-architecting our application (as we plan in the future) or doing quite a lot of code change, are there any other options?

推荐答案

如果您不对 Weblogic 使用 JavaEE ,则可以将应用程序迁移到 Spring Boot 很容易.最主要的是正确导入配置,组件,资源和属性.参见:示例.

If you do not use JavaEE for Weblogic, you can migrate your application to the Spring Boot easy enough. The main thing is the correct import of configuration, components, resources and properties. See: example.

如果您在旧项目 JPA 甚至 JDBC 中使用过将后端重写为 Spring Data 并不是很困难.

If you used in your legacy project JPA or even JDBC to rewrite backend to Spring Data is not very difficult.

从我的角度来看,主要困难是您使用的 JSF 版本.我会拒绝,因为:1)它与 Spring boot 不完全兼容,并且2)它已经过时了.将其放入 Spring Boot 需要花费很多精力,但仍然无法完全正常工作.如果没有时间和资源来将这种视图技术更改为另一种视图技术,则必须完成它才能完成 Spring Boot .

From my point of view the main difficulty is the JSF version you are using. I would refuse it, because: 1) it is not fully compatible with Spring boot and 2) it is already out of date today. It takes a lot of effort to put it into the Spring Boot and still it will not work completely. If there is no time and resources to change this view technology to another, you will have to finish it to Spring Boot.

我没有其他真正的选择

这篇关于用Spring Boot包装Monolith JSF/Spring应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆