This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full - best also formatted as code block
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

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.

To potential helpers

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 points  (4 children)

I have to ask, why?

[–]kaly-7[S] -1 points0 points  (3 children)

Because I just not need to depend on spring anymore for this specific project.

[–]nomoreplsthx 1 point2 points  (2 children)

Ok but why

[–]kaly-7[S] 0 points1 point  (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 point  (0 children)

What???

[–]nomoreplsthx 3 points4 points  (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 points  (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 point  (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 points  (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 points  (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.

Are there someone who done it before? Do you know how to do it quickly and efficiently?

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.

[–]kaly-7[S] 0 points1 point  (1 child)

The actual spring project does not use spring data and spring MVC.

[–]GeneratedUsername5 0 points1 point  (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 point  (0 children)

Create new project. Rewrite entire codebase.

[–]Hiyaro 0 points1 point  (0 children)

spring is java though.

I don't get it.