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 last month.
Improve this question
Can someone please point me to a simple and complete example using the Spring Cloud Kubernetes Configuration Watcher with a recent version of Spring Boot? I have found a few examples online that use the Config Watcher but they actually reload the properties using the older approach and they don't even realize it (i.e. the properties still get re-loaded without the Config Watcher even running).
Related
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 google cloud compute engine where the external ip is 35...*. I put my Spring boot jar in the folder and ran java -jar app.jar. The jar is starting.
However, when i use postman to call the endpoint of the spring, i do not get a response.
eg http://35...*/getallusers
Must I add some configurations for this to work?
You most likely haven’t configured the firewall rules correctly.
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 using Spring Batch to process CSV files as a batch process and SFTP adapters (Spring Integration) to download and upload files. Found Spring Documentation very helpful. But I am a little bit confused and curious about their best use cases.
So far my understanding, a monolith application can be broken down and integrated with another external system (FTP, email, queue, etc) using Spring Integration. What are the other use cases? Should I use Spring Batch with Spring Integration? What are the best practices?
Can anybody help?
There are no "best" use cases, it depends on the context. There is a whole chapter about how to use Spring Batch and Spring Integration together here: https://docs.spring.io/spring-batch/docs/4.2.x/reference/html/spring-batch-integration.html#springBatchIntegration.
I will let you decide when it is best to use them together depending on your requirement.
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 have a complete Spring Boot project, and I need to delete records from database under specific conditions every 48 hours.
I have to meet a deadline, is it worth it to learn and use Spring Batch for this purpose or is there any other way to do it?
You could create a new Spring Bean using the #Component annotation or reuse a service bean. Then, implement a method to delete this records and use the #scheduled annotation to configure when this method has to be executed.
Don't forget to add the #EnableAsyng annotation on your Spring Boot configuration class
Visit the Spring site and find for Scheduling 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 6 years ago.
Improve this question
I want to create a software about sports and nutrition and I am trying to create a multi-module project with multiples environments.
First , I would like to create six modules ,nutrition , sports , healthy , this modules has a backend and frontend that they consume a restful webservice.
So , the structure of the project I am thinking is the following (This modules will be more subdmodules)
-back-sports
-back-nutrition
-back-health
-front-sports
-front-nutrition
-front-health
-authentication
-authorization
-rest-api
I am not sure how to consume the rest api , but I am sure that I will be use JavaScript(This is the next step to think)
The part of the rest api will be : Jersey , Spring/POJO , JPA/Hibernate.
Database : MySQL
What is better ? Separte the module rest-api in another project or not.
Regards !
You can have rest-api as separate module, you just "inject" services from bussines modules, so rest api module will just expose those services to the rest transport layer.
Btw if you use spring boot you have security already in.
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 4 years ago.
Improve this question
Was looking for example of integrating captcha (any kind recaptcha, kaptcha ..) with Spring Boot on Login Page using Spring Security, using custom implementation of org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
Also how do i send additional params to userDetailsService class from Login Page ?
Thanks