Google cloud compute engine unable to access external ip spring boot [closed] - spring-boot

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.

Related

Spring Cloud Kubernetes Configuration Watcher Example [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 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).

Is Spring Batch suitable to periodically delete records from DB [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 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

JWT Authentication in Spring [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 5 years ago.
Improve this question
I am new Spring Core and Spring Security as well, but currently I am solving task where I have to implement authentication over JWT.
I do some research and I fount 2 solutions.
Make authentication with Spring Security, with OAuth2 module
Second option is using JJWT library. The majority of guides which I found were with JJWT.
Can you tell me what is better to use and why? Thanks.
Check out the answer of this it will help you. JWT vs OAuth authentication
You can use OAuth2 with JWT together.

Arquitecthure of the project [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 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.

Integrating captcha with Spring Boot on Login Page [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 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

Resources