-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Final project #65
base: bootcamp_roberta
Are you sure you want to change the base?
Final project #65
Conversation
This reverts commit f62e921.
public static void main(String[] args) { | ||
//SpringApplication.run(Application.class, args); | ||
|
||
context = SpringApplication.run(Application.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Al ser una rest api no deberiamos tener un metodo main aqui. Todo debe ser invocado desde afuera de la aplicacion y solo a modo dde pruebas no es necesario commitear eso
Update final project |
createCart(); | ||
Product product = productRepository.findOne(productId); | ||
if (product == null) { | ||
return "The product does not exists!"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lo mejor seria devolver un boolean
No description provided.