r/StackoverReddit • u/kaly-7 • Jul 29 '24
Java How to easily migrate spring project to java project ?
Hello guys I need to migrate a spring boot project to java project. I mean remove all spring features and using java features instead.
Are there someone who done it before? Do you know how to do it quickly and efficiently? Thank you in advance
5
Upvotes
6
u/Jaycebordelon1 Jul 29 '24
Curious. Why would you want to do this? You can just build a spring project into a library JAR or WAR if you want to reuse it elsewhere
4
u/Ok_Entrepreneur_8509 Jul 29 '24
You will basically have to write from scratch all of the Spring features being used. There is nothing quick or easy about that.
Can you explain where this requirement is coming from?
1
u/chrisrko Moderator Aug 08 '24
INFO!!! We are moving to r/stackoverflow !!!!
We want everybody to please be aware that all future posts and updates from us will from now on be on r/stackoverflow
We made an appeal to gain ownershift of r/stackoverflow because it has been abandoned, and it got granted!!
So please migrate with us to our new subreddit r/stackoverflow ;)
1
u/hadrabap Jul 29 '24
+1 for the title :-)
Well, it is not so easy. But it is not impossible.
I would take these steps (or at least I would try to):
After these steps you should have your app in two parts. One is JavaSE (plus business libraries) with your logic, the second one is pure Spring junk. Go over the junk and decide how you replace it. MicroProfile? Your own implementation? It should be mostly irrelevant at this stage. Your logic is independent of the Spring internals.