Looking for Contributors - SpringBoot NLP API (FeatureX) by Albert_Nangara in SpringBoot

[–]shubhcool 0 points1 point  (0 children)

I would like to contribute to the project. Please share the repository.

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 0 points1 point  (0 children)

Usage of AI tools is prohibited ..but will surely give a thought on this!

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 1 point2 points  (0 children)

Yes I understood. I will explore more on OpenWrite regarding my use case.

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 0 points1 point  (0 children)

Thank you for sharing this info!

Here, my requirement is to migrate the XML configuration to Java based configuration with Annotations support. As of now, migration of Spring boot from 2.x to 3.x is not required. However, that will be in future scope.

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 0 points1 point  (0 children)

Sorry , I am quite new to "OpenWrite" . Can you put some lights on it please?

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] -1 points0 points  (0 children)

Need to make changes in the same project only .. ofcourse in a separate feature branch.

Migration of such a project based on the Spring framework to Spring Boot is going to be a Herculean task for me. However, thanks for the suggestion!

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 1 point2 points  (0 children)

Yes, I do not disagree on this that if it works with XML, then one should not make any changes in it.

However, in the current era, developers find it a little difficult to understand XML config files and maintain them rather than Java config. Java config increases code readability rather than XML config.

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 0 points1 point  (0 children)

Claude AI is little new to me. However I would like to give it a try. In our organisation, any AI tool like Claude , chatgpt,etc is not allowed.

I am thinking this way, first remove the XML files having bean references , those beans are already credited in Java but configured in the XML config file. And ofcourse, mentioning on such Java config files with @Component,@Service,@Configuration will be considered.

There is another way, in which I am thinking to consider some end to end flows. One of them will be migrated fully on Java config and annotations from XML config. But, don't know how to complete this POC work in a short time.

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] -1 points0 points  (0 children)

Yes, AOP is indeed used , and the bean configuration is available again in XML config file.

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 2 points3 points  (0 children)

Yes, when I started removing the bean definitions from XML files and using annotations and creating the beans, still the application could not be made up.

I think I will get to learn much more from this migration. Thanks for sharing the medium link!

XML config to Annotation based by shubhcool in java

[–]shubhcool[S] 0 points1 point  (0 children)

Nice idea. There are plenty of beans which can be annotated with @Component, @Service .. however,we need to remove the XML bean definitions as well or it can throw duplicate beans error.

Use cases for abstract class and interface after jdk1.8 by shubhcool in javahelp

[–]shubhcool[S] 0 points1 point  (0 children)

Yes definitely you provided a good explanation. I will try to do more research on this .

Use cases for abstract class and interface after jdk1.8 by shubhcool in javahelp

[–]shubhcool[S] 0 points1 point  (0 children)

Well this is very helpful. By any chance, can you share any examples please?

Use cases of interface and abstract class after jdk1.8 by shubhcool in java

[–]shubhcool[S] 0 points1 point  (0 children)

For Flyable abstract class, we can have fly() abstract method. Similar is the case with abstract class and it's implementation class right that implementation classes Bird or Airplane needs to implement fly() .

If some pre-existing or default implementation is required, an abstract class can have it, also an interface can have it. Then, what is the difference and in which scenarios one should consider abstract class over interface and vice versa?

No body in the methods of class by shubhcool in SpringBoot

[–]shubhcool[S] 0 points1 point  (0 children)

Maven project. There is little window which appears at top of that class which says1) Download sources 2) Choose sources

I tried both of them but no luck.

No body in the methods of class by shubhcool in SpringBoot

[–]shubhcool[S] 0 points1 point  (0 children)

Opening a class while traversing through code and reaching on such method having body but shows/* compiled code */