Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am new to Spring and Java in general. I am working on a REST API and want to use Spring. I have read the Spring docs on getting started with Spring but most of them only talk about how to start a Spring project from scratch. I already have an existing Maven project and want to add Spring to that. Can anyone help with that?
I'm using IntelliJ CE 2020.3 if that helps.
Using Spring actually impacts the organisation of your code, and Spring boot even more.
I don't know the size of your existing project, but my first idea would be to build a new application structure using spring boot, then copy the "flesh" of your existing code into this structure, step by step.
Using only chosen bits of Spring / Spring boot is difficult, and certainly dangerous (for mental health) with no experience.
hth
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I'm learning spring boot to develop an eCommerce website by myself. I consider that starter dependencies like spring-boot-starter-web, spring-boot-starter-security can be used for a production environment or just for learning purposes?
The "starters" are Spring Boot's dependency management and auto-configuration mechanism. The term "starter" does not aim to indicate that it's for non-production uses cases, it is probably just used to emphasize that it gets you started quickly. See the following explanation from the Spring Boot documentation:
Starters are a set of convenient dependency descriptors that you can include in your application. You get a one-stop shop for all the Spring and related technologies that you need without having to hunt through sample code and copy-paste loads of dependency descriptors.
In order to understand starter dependencies better, I suggest reviewing section "Creating Your Own Starter" from the Spring Boot documentation.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I am planning to develop a Social Network App using Java. I recently learn Spring MVC and Spring Boot. I
am confuse which one is better to use for my app. Can you please give me some suggestion which one is
better to use? And what to use for front end as well?
Ehsan, Spring boot is a "way" to create your software, and spring mvc is a structure that how you build your software within Spring Boot! Spring has many frameworks, such as JPA and Security. You need both and more.
I use Angular and I like it. But, you can choose between react, vue and others.
The frontend does not need to depend on the backend, requests will be using API.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have started learning spring integration. As of now learnt that it provides features like transformers, filters etc
But I am not getting what can be practical use cases of spring integration. Say if I have to just transform java object to xml/json or vice versa.
Should I go ahead with spring integration . I think no as it can be achieved with their 3rd part libraries also . So what can be the use cases of
spring integration ?
Its very much used for enterprise integration.There are many theories and examples that you may have read. I can give you one scenario where we are currently using Spring integration.
We manage a business system in which we have to connect to different telecom operator with different kind service to get some information.Now some telecom operator uses email,soap based web service ,restfull webservice,Sockets ,ftp etc and all these we need to integrate our system. So we have one component which integrates with all the operator just by some simple configuration and very minimal codes.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am very new to Spring and REST. I've practiced few tutorials on Spring from internet and successfully executed few projects.
Now I have a plain Java project (with 5 packages 12 classes). I would like to convert this Java project to Spring framework with REST Services. I have nearly 4 (out of 12) classes (which would be my services). (I don't have any UI).
Can someone please help me out on how to convert this project to Spring-REST? I've been searching all over internet but nothing matches my context.
The fastest way to go IMHO is via Spring Boot Spring Boot makes it easily to bootstrap a fully working Spring-REST-Stack. In combination with Spring Tool Suite, you are up in no time.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am coming from Java Spring background. I am big fan of various Spring modules like Spring Core, Spring Security, Spring MVC etc.
I would now like to implement a web project in PHP and also I would like to leverage features provided by Spring framework. Is it possible to expose Services (Service Oriented Architecture) on server side using Spring and PHP?
I read about this article http://www.cs.montana.edu/~tosun/phpvsjava.pdf wherein a lot of limitations of PHP mentioned w.r.t. Java. Do you suggest any alternatives for overcoming these limitations?
Any help will be highly appreciated.
Thanks!
You should consider Symfony. You get a lot of nice features like dependency injection that you are used to with Spring.
Hope that helps.