spring web and spring batch compatibility? [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a project in the company that is running with spring web, they asked me for a batch job in which they want to implement spring batch. I have tried to elaborate it but it always gives me an error The web server cannot be started.
I would like to know if spring web is compatible with spring batch running at the same time in the same project

Yes, they are compatible. Can you post the error that you got?
By the way, consider to use #Schedule on you project, if it's possible.
#Scheduled(fixedRate = 1000)
public void executeJob() {
}
In some cases, it resolves the problem and you don't need to put a middleware to increase complexity to you business.

Related

what are the benefits of using a spring-boot library instead of the core libs? [closed]

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 11 months ago.
Improve this question
I need to use Kafka in my spring-boot application and I see spring-boot has its own spring-kafka library. I am new to spring and java and confused if I should be using spring-kafka or any other application's spring-based lib rather than using the core libraries and what are the benefits of either one of them.
Spring boot with Kafka comes with various autoconfiguration out-of-the-box to save you from the trouble of configuring each and everything (though you can definitely override spring-boot opinionated autoconfiguration).
So, if you want a ready-made application to work quickly, you can take the help of spring-boot and its utilities.
If your preference is configuring each and everything to gain fine control, use core libraries.
I'd say it's just a matter of choice or preference.

How best way can I generate a CRUD UI in a Spring Boot 2 project? Similar to how Django does it [closed]

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 3 years ago.
Improve this question
I am a fresh Spring Boot developer coming from a Django background. I like what i see so far but I've been searching for a way to auto-generate CRUD UI from my Entities similar to how Django admin does it out of the box. I'm not averse to solutions that require a little tinkering.
Spring Boot does not provide you that kind of feature but there are some additional tools that can easily do it for you - the most popular is jHipster

what is exact relation among spring , java servlet and tomcat in mapping url to a resource? [closed]

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 6 years ago.
Improve this question
I am working on a dynamic web project in java with spring framework running on a tomcat.
in details which one is responsible for url mapping ? and what is role of each of them in this scenario?
If you are very new to J2EE than I would like to suggest first go through JSP and Servlet then you will be able to understand how servlet mapping work, what is web container and all.after getting idea about these thing it would be easy for you to deal with spring, as of now answer to your questions is seems to be broad category.

Creating Spring Web Application: Steps? [closed]

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 6 years ago.
Improve this question
I am creating a simple web application using Spring MVC and Spring Data that will relate to a database.
What are the first steps that I should take when designing/programming this?
Set up database?
Create simple project using maven?
Follow the Quick Start on Spring Boot: http://projects.spring.io/spring-boot/
Spring Boot will let you fire up a Spring MVC application very quickly and easily.
If it were me, I would take this opportunity to use Gradle instead of maven (http://gradle.org/getting-started-gradle-java/).
Once you have the basic MVC setup and tested, then you can move on to setting up the database and Spring Data. You can get more information on how to setup Spring Data for Spring Boot in section 29 here:
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html

Difference between Vertx and Spring Boot [closed]

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
Vertx and Spring both can be used to build entire REST application with many features like metrics calculation, monitoring via JMX etx.
a) What is the difference between Spring Boot and Vertx?
b) I stumbled upon an article: http://keaplogik.blogspot.in/2015/11/spring-boot-vertx-microservice-tech.html.
It describes a techstack that mixes both vertx and Spring Boot, but being new to both have not been able to figure out the usage in the mentioned link.
I am currently working on a REST application project, so I wanted to pick the correct stack before diving in.
Thanks in advance.
There is no correct (or incorrect) stacks, just stacks that fits your needs or not. In that case, either one is good. My personal preference goes for vertx, but you should try both and make your own opinion.
Both documentation is good, so take few hours on each, experiment, and choose based on your own experience.

Categories

Resources