In your model package, have you mapped your employee bean to the table?
Anyone have video angular?
Hi someone can help me with this question?
And what is the solution?
How can i solve the problem?
And if I copy the category list in the CreateProductForm method?
now, you have duplicate key issue?
Can someone suggests a good source for multifactor authentication( Google authenticator) for Spring Boot?

Anyone plz verify it is correct or not
I just copied properties and manually gave my database name

In your model package, have you mapped your employee bean to the table?
https://stackoverflow.com/questions/72805200/problem-with-populating-a-dropdown-list-manytoone-spring
I have a problem populating a drop down list with a ManyToOne relationship.
I have two entities, Product referencing Category with Category ID …
But I can’t populate the category list with the Sp…
https://stackoverflow.com/questions/72805200/problem-with-populating-a-dropdown-list-manytoone-spring
guess your endpoint is different. You’re adding cateogories to the model in one method, but the form action points to another.
You should have driver-class-name
Spring.datasource.driver-class-name

yes. That’s what I was referring to.
You have
<form:select path=”category”>
<form:options items=”${categories}”></form:options>
</form:select>
under the form which point to method createProductForm.
<form:form action=”createProductForm”
But, the categories is added to the model, only in this method.
@GetMapping(“/createProd”)
public ModelAndView createProduct(@ModelAttribute(“newProduct”) Product p, Model model) {
List<Category> categories = (List<Category>) catRep.findAll();
model.addAttribute(“categories”, categories);
return new ModelAndView(“createProduct”, “newProduct”, new Product());
}
You have to add categories to the other method, or change the method to which the form:action points to.
You have
<form:select path=”category”>
<form:options items=”${categories}”></form:options>
</form:select>
under the form which point to method createProductForm.
<form:form action=”createProductForm”
But, the categories is added to the model, only in this method.
@GetMapping(“/createProd”)
public ModelAndView createProduct(@ModelAttribute(“newProduct”) Product p, Model model) {
List<Category> categories = (List<Category>) catRep.findAll();
model.addAttribute(“categories”, categories);
return new ModelAndView(“createProduct”, “newProduct”, new Product());
}
You have to add categories to the other method, or change the method to which the form:action points to.
And if I copy the category list in the CreateProductForm method? It will solve the problem of the duplicate key?
ok. the problem you stated was not getting the categories dropdown. now, you have duplicate key issue?
This is my controller
What should I do ? Every time newly created workbench only opening..
What should I do ? Every time newly created workbench only opening..
u might have option as open recent workspace under File..
What should I do ? Every time newly created workbench only opening..
Under the file menu, you can see Switch Workspace option, select that and select your old Workspace