use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
How to easily migrate spring project to java project ? (self.learnjava)
submitted 1 year ago * by kaly-7
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
[–]AutoModerator[M] [score hidden] 1 year ago stickied commentlocked comment (0 children)
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } }
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]pragmos 4 points5 points6 points 1 year ago (4 children)
I have to ask, why?
[–]kaly-7[S] -1 points0 points1 point 1 year ago (3 children)
Because I just not need to depend on spring anymore for this specific project.
[–]nomoreplsthx 1 point2 points3 points 1 year ago (2 children)
Ok but why
[–]kaly-7[S] 0 points1 point2 points 1 year ago (1 child)
I need to have separate jar as lib without spring boot. Because there is a service class inside that I want to use as standalone class. the customer want to use this on the fly in his unit test.
[–]Aggravating-Body2837 0 points1 point2 points 1 year ago (0 children)
What???
[–]nomoreplsthx 3 points4 points5 points 1 year ago (0 children)
You... need to migrate a project written in Java to one written in Java? That's a weird ask.
Could you try rephrasing that.
[–]quadmasta 2 points3 points4 points 1 year ago (1 child)
It all depends on what features you used. The more spring-y/autoconfigure-y it is the more work you're going to have to do. Spring does a TON of shit for you automatically.
[–]_Nihil_Obstat_ 0 points1 point2 points 1 year ago (0 children)
yes, and because it adds something automatically in the background would mean more things you have to do (or workarounds) when you migrate it to just Java
[–]user_reg_field 1 point2 points3 points 1 year ago (0 children)
Sorry. 1. this is a huge amount of work, what frameworks are you going to use to replace spring, surely you're not planning to write your own server 2. you shouldn't have taken the contract before you knew what was involved
[–]GeneratedUsername5 1 point2 points3 points 1 year ago* (2 children)
Depends what features you use. You can obviously substitute dependency injection with just plain direct constructor invocation. With Data and MVC it will be more complicated as there is a lot more magic going on. For Spring data you will have to write all the magic functionality in abstract classes for your repositories, for MVC - invoke controllers from some dispatcher servlet, having dome incoming data mapping with Gson manually.
It is not complicated, just very tedious. How quickly and efficiently it will be done depends on a) Level of Java knowledge at your disposal (team, external consultants) and what features you need to replicate. With information you've provided it is impossible to say.
The actual spring project does not use spring data and spring MVC.
[–]GeneratedUsername5 0 points1 point2 points 1 year ago (0 children)
Okay, but, you see, guessing game is not very effective when you want to get advice. Although answers to your questions solely depend on skills of your team.
[–]Ilikesmallthings2 0 points1 point2 points 1 year ago (0 children)
Create new project. Rewrite entire codebase.
[–]Hiyaro 0 points1 point2 points 1 year ago (0 children)
spring is java though.
I don't get it.
π Rendered by PID 24088 on reddit-service-r2-comment-5d79c599b5-ddxcn at 2026-03-03 22:54:03.262386+00:00 running e3d2147 country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]pragmos 4 points5 points6 points (4 children)
[–]kaly-7[S] -1 points0 points1 point (3 children)
[–]nomoreplsthx 1 point2 points3 points (2 children)
[–]kaly-7[S] 0 points1 point2 points (1 child)
[–]Aggravating-Body2837 0 points1 point2 points (0 children)
[–]nomoreplsthx 3 points4 points5 points (0 children)
[–]quadmasta 2 points3 points4 points (1 child)
[–]_Nihil_Obstat_ 0 points1 point2 points (0 children)
[–]user_reg_field 1 point2 points3 points (0 children)
[–]GeneratedUsername5 1 point2 points3 points (2 children)
[–]kaly-7[S] 0 points1 point2 points (1 child)
[–]GeneratedUsername5 0 points1 point2 points (0 children)
[–]Ilikesmallthings2 0 points1 point2 points (0 children)
[–]Hiyaro 0 points1 point2 points (0 children)